-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d53c23
commit ad81e78
Showing
1 changed file
with
28 additions
and
5 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 |
---|---|---|
@@ -1,13 +1,36 @@ | ||
language: android | ||
jdk: | ||
- oraclejdk8 | ||
sudo: required | ||
jdk: oraclejdk8 | ||
|
||
cache: | ||
directories: | ||
- ${TRAVIS_BUILD_DIR}/gradle/caches/ | ||
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/ | ||
|
||
env: | ||
global: | ||
- ANDROID_API_LEVEL=24 | ||
- ANDROID_BUILD_TOOLS_VERSION=24.0.3 | ||
- ANDROID_ABI=armeabi-v7a | ||
- ANDROID_TAG=google_apis | ||
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default) | ||
|
||
android: | ||
components: | ||
- tools # to get the new `repository-11.xml` | ||
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943) | ||
- platform-tools | ||
- build-tools-24.0.2 | ||
- android-24 | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-$ANDROID_API_LEVEL | ||
- extra-google-m2repository | ||
- sys-img-armeabi-v7a-google_apis-$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 --tag $ANDROID_TAG | ||
- emulator -avd test -no-skin -no-window & | ||
- android-wait-for-emulator | ||
- adb shell input keyevent 82 & | ||
|
||
script: | ||
- ./gradlew build connectedCheck | ||
- ./gradlew clean jacocoDebugTestReport |