forked from sky-map-team/stardroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sky-map-team#137 from barbeau/travis
Steal Sean's travis configuration
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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,41 @@ | ||
language: android | ||
jdk: oraclejdk7 | ||
# Don't use the Travis Container-Based Infrastructure - causes memory issues | ||
sudo: true | ||
|
||
cache: | ||
directories: | ||
- ${TRAVIS_BUILD_DIR}/gradle/caches/ | ||
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/ | ||
|
||
env: | ||
global: | ||
- ANDROID_API_LEVEL=23 | ||
- ANDROID_BUILD_TOOLS_VERSION=23.0.3 | ||
- ANDROID_ABI=armeabi-v7a | ||
- ADB_INSTALL_TIMEOUT=10 # minutes (2 minutes by default) | ||
|
||
android: | ||
components: | ||
- platform-tools | ||
- tools | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-$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-android-$ANDROID_API_LEVEL | ||
|
||
before_script: | ||
# Create and start emulator | ||
- echo no | android create avd --force -n test -t android-$ANDROID_API_LEVEL --abi $ANDROID_ABI | ||
- emulator -avd test -no-skin -no-audio -no-window & | ||
- android-wait-for-emulator | ||
|
||
script: | ||
- ./gradlew app:connectedAndroidTest -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