-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy path.travis.yml
54 lines (45 loc) · 1.25 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
language: android
jdk: oraclejdk8
sudo: required
env:
global:
- GRADLE_OPTS="-Xmx512m"
matrix:
- ADB_INSTALL_TIMEOUT=15
cache:
directories:
- "${TRAVIS_BUILD_DIR}/android/gradle/caches/"
- "${TRAVIS_BUILD_DIR}/android/gradle/wrapper/dists/"
- "$HOME/android/.gradle/caches/"
- "$HOME/android/.gradle/wrapper/"
android:
components:
- tools
- platform-tools
- build-tools-26.0.2
- tools
- android-25
- android-22
- addon-google_apis-google-25
- extra-google-m2repository
- extra-android-m2repository
- android-sdk-license-.+
# system images for emulator
- sys-img-armeabi-v7a-android-22
before_script:
- chmod +x gradlew
- echo no | android create avd --force --name test --target android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
script:
- android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew connectedCheck test jacocoTestReport
- ./gradlew build
- ./gradlew assembleRelease
- bash scripts/prep-key.sh
# Success or not if a pull request is merged the apk should be updated if it can be build
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./update-apk.sh; fi'
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
webhooks: