-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
65 lines (52 loc) · 2.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Disabling sudo moves build to the Container Based Infrastructure on Travis CI
sudo: false
language: android
jdk: oraclejdk8
android:
components:
- tools
# Such duplicated sequence is a workaround for Travis issue: https://github.com/travis-ci/travis-ci/issues/6699
# Lint fails due to old build tools version.
- android-24
- build-tools-24.0.2
- platform-tools
- build-tools-24.0.2
- android-24
- extra-android-m2repository
- extra-android-support
- sys-img-armeabi-v7a-android-18
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
before_install:
- chmod +x gradlew
- pip install --user codecov
script:
# Clean.
- ./gradlew --no-daemon --info clean
# Build and unit tests.
- ./gradlew --no-daemon --info build -PdisablePreDex
# Start emulator before instrumented tests.
# This way it doesn't consume memory waiting, during the previous build steps.
- echo no | android create avd --force -n test -t android-18 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82
# Instrumented tests.
- ./gradlew --no-daemon --info --stacktrace connectedAndroidTest -PdisablePreDex
after_success:
- codecov
cache:
directories:
- "$HOME/.m2"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
deploy:
provider: releases
api_key:
secure: tQG7+XmLbR5EnMY0pfYq1kn2jt2C3/db/uWC9d7Vh8odGwryt34APuIj2/27WKQHCoGHWc+mypU6dxMRWRaKgjfnYyxUOO8KthD96/yswf0aw/gLYEJh6UpIPtKofhg3TjHOc+uYBIG4dXCY5C9ANvWdDDdcJcguZggIXxcOdmW8Txk6yMl+Xg4bzmMkWttCApUue685R4D8AB3UbgiMxnElK6XRcab25fXLAdFCNlNl++4Bb6OEhAdGi0t9FjDeE/Cc3T/f3tY9UbJ6jRoPfJBtA6ROIX+yW1u3gaoYImrYmc9RP7iRfuSRcQPDbDNEYdH2RC6sCKjIAZSqoNlOe2w37JGYUOOWwi1TPiXFKiSYCNHZjHD7aKcUAiiZzmlizk+drsZrdKw0Jj4wgxmO4YxaaMhr7fVUX0UFBIyi74u7mQG0U0nknejNcLO4ao1w3umTIoJS1apn9uQfRU1P9mCwVXshzHS/w5VKrdPsAy4FDif2XMk8tdKIMG/mvLZNHdT0Q8hDZUMqAvUc5M9JyyDki/Cvbma+f0V6+Wp/nC6n2gcnEmsfKDBlzuNm+l0IJh9pNFS54+JWo0HRuQIN8xpwDJ/AG+BM9PKk6togpZo2acPVRMi36G9D+SyUEuQaixhXRaZjYu6WT3mNVrIIdPsehpVCWGg4Z7fHbNs7ATA=
file: app/build/outputs/apk/app-release.apk
skip_cleanup: true
on:
tags: true
repo: artemik/lori-timesheets-android