-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
40 lines (31 loc) · 1.09 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
sudo: false
language: android
env:
- ADB_INSTALL_TIMEOUT=8
android:
components:
- tools
- platform-tools
- build-tools-23.0.3
- android-23
- extra-android-m2repository
- extra-google-m2repository
- sys-img-armeabi-v7a-android-21
before_install:
- openssl aes-256-cbc -d -a -k "$encription_password" -in app/gradle.properties.enc -out app/gradle.properties
- openssl aes-256-cbc -d -a -k "$encription_password" -in app/service-account.p12.enc -out app/service-account.p12
- openssl aes-256-cbc -d -a -k "$encription_password" -in app/keystore.jks.enc -out app/keystore.jks
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
install:
- travis_retry travis_wait ./gradlew assembleDebugAndroidTest
before_script:
- android-wait-for-emulator
- adb shell input keyevent 82
script:
- travis_wait ./gradlew test
- travis_wait ./gradlew connectedDebugAndroidTest
after_script:
- adb logcat -d
after_success:
- test "$TRAVIS_BRANCH" == "master" && ./gradlew :app:publishApkRelease