Skip to content

Commit

Permalink
Another test
Browse files Browse the repository at this point in the history
  • Loading branch information
isuPatches committed Oct 29, 2016
1 parent 5d96b2a commit e2755d2
Showing 1 changed file with 11 additions and 29 deletions.
40 changes: 11 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
script: ./gradlew connectedAndroidTest

0 comments on commit e2755d2

Please sign in to comment.