Skip to content

Commit bbcf8cf

Browse files
authored
update travis (#578)
1 parent f252553 commit bbcf8cf

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

.travis.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
11
language: android
22

3+
jdk:
4+
- oraclejdk8
5+
6+
env:
7+
global:
8+
- ANDROID_TARGET=android-22
9+
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
10+
- ANDROID_ABI=armeabi-v7a
11+
312
before_install:
413
- yes | sdkmanager "platforms;android-29"
5-
- yes | sdkmanager "platforms;android-28"
6-
- yes | sdkmanager "platforms;android-19"
7-
8-
jdk:
9-
- oraclejdk8
1014

1115
android:
12-
components:
13-
- tools
14-
- tools
15-
- platform-tools
16-
- build-tools-28.0.3
17-
- android-28
18-
- android-19
19-
- extra-android-support
20-
- extra-android-m2repository
21-
- extra-google-m2repository
22-
- sys-img-armeabi-v7a-android-19
23-
licenses:
24-
- .+
16+
components:
17+
- tools
18+
- platform-tools
19+
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
20+
- $ANDROID_TARGET
21+
- extra-android-m2repository
22+
- extra-google-m2repository
23+
- sys-img-armeabi-v7a-android-22
24+
licenses:
25+
- .+
2526

2627
before_script:
27-
- echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a
28-
- emulator -avd test -no-audio -no-window &
29-
- android-wait-for-emulator
30-
- adb shell settings put global window_animation_scale 0 &
31-
- adb shell settings put global transition_animation_scale 0 &
32-
- adb shell settings put global animator_duration_scale 0 &
33-
- adb shell input keyevent 82 &
28+
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
29+
- emulator -avd test -no-audio -no-window &
30+
- android-wait-for-emulator
31+
- adb shell settings put global window_animation_scale 0 &
32+
- adb shell settings put global transition_animation_scale 0 &
33+
- adb shell settings put global animator_duration_scale 0 &
34+
- adb shell input keyevent 82 &
35+
36+
script:
37+
- ./gradlew assembleDebug
38+
- ./gradlew connectedDebugAndroidTest
3439

3540
notifications:
36-
email: false
41+
email: false

0 commit comments

Comments
 (0)