|
1 | 1 | language: android |
2 | 2 |
|
| 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 | + |
3 | 12 | before_install: |
4 | 13 | - yes | sdkmanager "platforms;android-29" |
5 | | - - yes | sdkmanager "platforms;android-28" |
6 | | - - yes | sdkmanager "platforms;android-19" |
7 | | - |
8 | | -jdk: |
9 | | - - oraclejdk8 |
10 | 14 |
|
11 | 15 | 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 | + - .+ |
25 | 26 |
|
26 | 27 | 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 |
34 | 39 |
|
35 | 40 | notifications: |
36 | | - email: false |
| 41 | + email: false |
0 commit comments