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