Skip to content

Commit

Permalink
Another stab at travis
Browse files Browse the repository at this point in the history
  • Loading branch information
isuPatches committed Jul 23, 2017
1 parent 3fce181 commit 7757c03
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,37 @@ language: android
jdk: oraclejdk8
sudo: false

cache:
directories:
- ${TRAVIS_BUILD_DIR}/gradle/caches/
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/

env:
global:
- ANDROID_API_LEVEL=26
- EMULATOR_API_LEVEL=26
- ANDROID_BUILD_TOOLS_VERSION=26.0.0
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)

android:
components:
- tools
- platform-tools
- tools
- build-tools-26.0.0
- android-26
- sys-img-armeabi-v7a-android-26
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- android-$EMULATOR_API_LEVEL
- sys-img-armeabi-v7a-google_apis-$ANDROID_API_LEVEL
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
- extra-android-m2repository
- extra-android-support
- extra-google-m2repository

before_script:
# Create and start emulator
- echo no | android create avd --force -n test -t android-26 --abi armeabi-v7a
- echo no | android create avd --force -n test -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

script: travis_wait 60 ./gradlew clean connectedAndroidTest -PdisablePreDex --stacktrace

0 comments on commit 7757c03

Please sign in to comment.