-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed in #207 (comment), requires changing to `compileSdkVersion "Google Inc.:Google APIs:21"`, because: a) Google API emulator image is needed to run tests that require Google Play Services (see https://developers.google.com/android/guides/setup) b) the Google API Level 23 emulator seems to have a bug that doesn't allow installing/running tests from the command line This patch also adds a command-line option to disable pre-dexing, which is used on Travis to decrease build times (see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.)
- Loading branch information
Showing
5 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
language: android | ||
jdk: oraclejdk7 | ||
# Use the Travis Container-Based Infrastructure | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- ${TRAVIS_BUILD_DIR}/gradle/caches/ | ||
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/ | ||
|
||
env: | ||
global: | ||
- ANDROID_API_LEVEL=21 | ||
- ANDROID_BUILD_TOOLS_VERSION=23.0.0 | ||
- ANDROID_ABI=google_apis/armeabi-v7a | ||
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default) | ||
|
||
android: | ||
components: | ||
- platform-tools | ||
- tools | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-$ANDROID_API_LEVEL | ||
# For Google APIs | ||
- addon-google_apis-google-$ANDROID_API_LEVEL | ||
# Google Play Services | ||
- extra-google-google_play_services | ||
# Support library | ||
- extra-android-support | ||
# Latest artifacts in local repository | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
# Specify at least one system image | ||
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL | ||
|
||
before_script: | ||
# Create and start emulator | ||
- echo no | android create avd --force -n test -t "Google Inc.:Google APIs:"$ANDROID_API_LEVEL --abi $ANDROID_ABI | ||
- emulator -avd test -no-skin -no-audio -no-window & | ||
- android-wait-for-emulator | ||
|
||
script: | ||
- ./gradlew connectedCheck -x library:signArchives -PdisablePreDex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters