From ca88ab0ef050795d259aa893a23d5c164d781c8c Mon Sep 17 00:00:00 2001 From: isuPatches Date: Sun, 23 Oct 2016 17:56:28 -0500 Subject: [PATCH] Update travis.yml --- .travis.yml | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6b177717..35c19b32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,31 +1,45 @@ +language: android +jdk: oraclejdk8 +# 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=24 - ANDROID_BUILD_TOOLS_VERSION=24.0.3 - ANDROID_ABI=armeabi-v7a - ANDROID_TAG=google_apis -language: android -jdk: - - oraclejdk8 + - 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-tool + - platform-tools + - tools # to install Android SDK tools 25.1.x - 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-google_apis-$ANDROID_API_LEVEL -before_install: - - export JAVA8_HOME=/usr/lib/jvm/java-8-oracle - - export JAVA_HOME=$JAVA8_HOME - -script: - - ./gradlew clean jacocoDebugTestReport - before_script: - - 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-audio -no-window & + # 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 & \ No newline at end of file + +script: + - ./gradlew clean jacocoDebugTestReport \ No newline at end of file