mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Merge pull request #764 from whym/travis
Attempts to reduce timeout (for Travis-CI)
This commit is contained in:
commit
31b12ba399
1 changed files with 7 additions and 2 deletions
|
|
@ -3,10 +3,15 @@ addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- w3m
|
- w3m
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- ${TRAVIS_BUILD_DIR}/gradle/caches/
|
||||||
|
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- ANDROID_TARGET=android-22
|
- ANDROID_TARGET=android-22
|
||||||
- ANDROID_ABI=armeabi-v7a
|
- ANDROID_ABI=armeabi-v7a
|
||||||
|
- ADB_INSTALL_TIMEOUT=12 # in minutes
|
||||||
android:
|
android:
|
||||||
components:
|
components:
|
||||||
- platform-tools
|
- platform-tools
|
||||||
|
|
@ -19,10 +24,10 @@ android:
|
||||||
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
|
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
|
||||||
before_script:
|
before_script:
|
||||||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
||||||
- emulator -avd test -no-audio -no-window &
|
- emulator -avd test -no-audio -no-window -no-boot-anim &
|
||||||
- android-wait-for-emulator
|
- android-wait-for-emulator
|
||||||
script:
|
script:
|
||||||
- ./gradlew check connectedCheck jacocoTestReport -stacktrace
|
- ./gradlew clean check connectedCheck jacocoTestReport --stacktrace
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
after_failure:
|
after_failure:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue