Skip to content

Commit

Permalink
Fighting with travis still
Browse files Browse the repository at this point in the history
  • Loading branch information
isuPatches committed Jul 23, 2017
1 parent c7684bd commit 7ba6a77
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,30 @@
language: android
jdk: oraclejdk8
sudo: false
dist: trusty

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

env:
matrix:
- EMULATOR_SDK_LEVEL=16 ABI=armeabi-v7a
- EMULATOR_SDK_LEVEL=24 ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=20
- ANDROID_TARGET=android-23
- ANDROID_ABI=armeabi-v7a
- BUILD_TOOLS_VERSION=26.0.0
- TARGET_SDK_LEVEL=26

android:
components:
- tools
- platform-tools
- build-tools-$BUILD_TOOLS_VERSION
- android-$EMULATOR_SDK_LEVEL
- android-$TARGET_SDK_LEVEL
- build-tools-${BUILD_TOOLS_VERSION}
- android-23
- android-${TARGET_SDK_LEVEL}
- extra-android-m2repository
- extra-android-support
- extra-google-m2repository
- sys-img-$ABI-$EMULATOR_SDK_LEVEL

before_script:
- echo no | android create avd --force --name test --target android-$EMULATOR_SDK_LEVEL --abi $ABI
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb devices
- adb shell input keyevent 82 &
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}

script:
- travis_wait 60 ./gradlew connectedAndroidTest --stacktrace
- ./gradlew jacocoDebugReport
- ./gradlew build jacocoDebugTestReport assembleAndroidTest
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- ./gradlew connectedCheck

after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 7ba6a77

Please sign in to comment.