From e2755d24f1adb079e146448db6d9db1124f0ad66 Mon Sep 17 00:00:00 2001 From: isuPatches Date: Sat, 29 Oct 2016 17:46:17 -0500 Subject: [PATCH] Another test --- .travis.yml | 40 +++++++++++----------------------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4c2eea26..50618c3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,41 +2,23 @@ language: android jdk: oraclejdk8 sudo: false -cache: - directories: - - ${TRAVIS_BUILD_DIR}/gradle/caches/ - - ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/ - -env: - global: - - ANDROID_SDK_LEVEL=24 - - ANDROID_EMULATOR_SDK_LEVEL=22 - - 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` - platform-tools - - tools # to install Android SDK tools 25.1.x - - build-tools-$ANDROID_BUILD_TOOLS_VERSION - - android-$ANDROID_SDK_LEVEL - - android-$ANDROID_EMULATOR_SDK_LEVEL - - addon-google_apis-google-$ANDROID_EMULATOR_SDK_LEVEL + - tools + - build-tools-24.0.2 + - android-22 + - android-24 + - sys-img-armeabi-v7a-android-22 + - extra-android-m2repository - extra-android-support - extra-google-m2repository - - extra-android-m2repository - - sys-img-armeabi-v7a-google_apis-$ANDROID_EMULATOR_SDK_LEVEL before_script: - - echo no | android create avd --force -n test -t "android-"$ANDROID_EMULATOR_SDK_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG - - emulator -avd test -no-skin -no-window & - - chmod +x ./wait_for_emulator.sh - - ./wait_for_emulator.sh - - adb devices + # Create and start emulator + - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a + - emulator -avd test -no-skin -no-audio -no-window & + - android-wait-for-emulator - adb shell input keyevent 82 & -script: - - ./gradlew clean check connectedCheck -PdisablePreDex --stacktrace \ No newline at end of file +script: ./gradlew connectedAndroidTest \ No newline at end of file