Skip to content

Commit

Permalink
Adjusted travis.yml to speed up pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Steppschuh committed Nov 5, 2020
1 parent 1d5f6aa commit 2f5aa89
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ env:
- EMULATOR_API_LEVEL=24
- ADB_INSTALL_TIMEOUT=15

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

cache:
directories:
- $HOME/.gradle/daemon # Cache daemon logs
- $HOME/.gradle/native # Cache library downloaded from the gradle dependency
- $HOME/.gradle/wrapper # Cache the gradle

android:

components:
Expand All @@ -34,15 +43,15 @@ before_install:

before_script:
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi armeabi-v7a
- emulator -avd test -no-window &
- emulator -avd test -no-skin -no-audio -no-window -gpu off &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb devices
- android list target

script:
- travis_wait ./gradlew test -PdisablePreDex --stacktrace
- travis_wait ./gradlew connectedDebugAndroidTest -PdisablePreDex --stacktrace
- travis_wait 15 ./gradlew rxkeystore:testDebugUnitTest -PdisablePreDex --stacktrace
- travis_wait 30 ./gradlew rxkeystore:connectedDebugAndroidTest -PdisablePreDex --stacktrace
- ./gradlew jacocoTestReport

after_success:
Expand Down

0 comments on commit 2f5aa89

Please sign in to comment.