Skip to content

Commit

Permalink
Trying to speed up travis
Browse files Browse the repository at this point in the history
  • Loading branch information
isuPatches committed Jul 23, 2017
1 parent 5a2ac60 commit 4eb22cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: android
jdk: oraclejdk8
sudo: false
sudo: required

cache:
directories:
Expand Down Expand Up @@ -31,12 +31,12 @@ android:

before_script:
- echo no | android create avd --force -n test -t android-$EMULATOR_SDK_LEVEL --abi $ABI --tag $TAG
- emulator -avd test -no-skin -no-audio -no-window &
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

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

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ subprojects {
}

ext {
travisBuild = System.getenv("TRAVIS") == "true"
// allows for -Dpre-dex=false to be set
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))

GROUP = "com.isupatches"
VERSION_NAME = "2.0.0"

Expand Down
5 changes: 5 additions & 0 deletions wisefy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ dexcount {

android {

dexOptions {
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
preDexLibraries = preDexEnabled && !travisBuild
}

adbOptions {
timeOutInMs 15 * 60 * 1000 // 15 minutes
installOptions "-d","-t"
Expand Down

0 comments on commit 4eb22cc

Please sign in to comment.