diff --git a/.travis.yml b/.travis.yml index 66cb66e0..2d56cd10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,20 @@ language: android -sudo: required +sudo: false jdk: oraclejdk8 +cache: + directories: + - $HOME/.gradle/caches/2.8 + - $HOME/.gradle/caches/jars-1 + - $HOME/.gradle/daemon + - $HOME/.gradle/native + - $HOME/.gradle/wrapper + env: global: + - ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default) - 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) matrix: - ANDROID_TARGET=android-24 ANDROID_ABI=armeabi-v7a @@ -28,9 +34,10 @@ android: before_install: - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M - emulator -avd test -no-window & - - android update project -p . - chmod +x ./wait_for_emulator.sh - ./wait_for_emulator.sh + - adb devices + - adb shell input keyevent 82 & script: - - travis_wait 20 ./gradlew build connectedCheck \ No newline at end of file + - ./gradlew build connectedCheck \ No newline at end of file