File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
- NDK_VERSION=r12b
4
4
- DATE=$(date +%Y-%m-%d)
5
5
- PACKAGE_VERSION=next-$DATE-$TRAVIS_BUILD_NUMBER
6
+ - EMULATOR_API_LEVEL=21
7
+ - ANDROID_ABI=armeabi-v7a
8
+ - EMULATOR_NAME=runtime-emu
6
9
sudo : true
7
10
language : android
8
11
jdk :
@@ -15,9 +18,10 @@ android:
15
18
- tools
16
19
- build-tools-25.0.2
17
20
- android-23
21
+ - android-$EMULATOR_API_LEVEL
18
22
- extra-android-support
19
23
- extra-android-m2repository
20
- - sys-img-armeabi-v7a- android-21
24
+ - sys-img-$ANDROID_ABI- android-$EMULATOR_API_LEVEL
21
25
before_cache :
22
26
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
23
27
cache :
@@ -35,8 +39,8 @@ before_install:
35
39
- export PATH=${PATH}:${ANDROID_NDK_HOME}
36
40
script :
37
41
- " ./gradlew createPackage -i -PpreReleaseVersion=$PACKAGE_VERSION -PgitCommitVersion=$TRAVIS_COMMIT --stacktrace"
38
- - echo no | android create avd --force -n Arm21 -t android-21 -b armeabi-v7a -c 12M
39
- - emulator -avd Arm21 -no-skin -no-audio -no-window &
42
+ - echo no | android create avd --force -n $EMULATOR_NAME-$EMULATOR_API_LEVEL -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI -c 12M
43
+ - emulator -avd $EMULATOR_NAME-$EMULATOR_API_LEVEL -no-skin -no-audio -no-window &
40
44
- android-wait-for-emulator
41
45
- " cd test-app && ./gradlew assembleDebug runtests -PembedBindingGenerator=true --stacktrace"
42
46
- adb -e logcat -d 300
You can’t perform that action at this time.
0 commit comments