Skip to content

Commit 0371c47

Browse files
committed
change travis ci to build the runtime only in debug for the purposes of the test app
1 parent ca55c6e commit 0371c47

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ matrix:
3030
sudo: true
3131
language: android
3232
jdk: oraclejdk8
33+
android:
34+
components:
35+
- android-$EMULATOR_API_LEVEL
36+
- extra-android-support
37+
- extra-android-m2repository
38+
- cmake
39+
- sys-img-$ANDROID_ABI-android-$EMULATOR_API_LEVEL
3340
git:
3441
submodules: false
3542
script:
36-
# (PR) build the runtime only once, with the c++ code optimizations
37-
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./gradlew -PskipUnoptimized -PpreReleaseVersion=$PACKAGE_VERSION -PgitCommitVersion=$TRAVIS_COMMIT --stacktrace; fi'
38-
# (master branch) build the runtime twice - optimized, and regular packages
43+
# (master branch) build the runtime twice - optimized, and regular packages, skip on PRs
44+
# test-app/gradlew runtest will take care of building the runtime for its testing needs
3945
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./gradlew -PpreReleaseVersion=$PACKAGE_VERSION -PgitCommitVersion=$TRAVIS_COMMIT --stacktrace; fi'
4046
- echo no | android create avd --force -n $EMULATOR_NAME-$EMULATOR_API_LEVEL -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI -c 12M
4147
- emulator -avd $EMULATOR_NAME-$EMULATOR_API_LEVEL -no-skin -no-audio -no-window &
@@ -61,11 +67,6 @@ android:
6167
- tools
6268
- build-tools-26.0.1
6369
- android-26
64-
- android-$EMULATOR_API_LEVEL
65-
- extra-android-support
66-
- extra-android-m2repository
67-
- cmake
68-
- sys-img-$ANDROID_ABI-android-$EMULATOR_API_LEVEL
6970
licenses:
7071
- 'android-sdk-preview-license-52d11cd2'
7172
- 'android-sdk-license-.+'

0 commit comments

Comments
 (0)