mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 12:42:56 -04:00
#1175 disable unit tests temporarily, print logs on connected test failure
This commit is contained in:
parent
54d4602348
commit
e8f4c1d509
17
.travis.yml
17
.travis.yml
@ -6,8 +6,8 @@ sudo: required
|
||||
|
||||
env:
|
||||
global:
|
||||
- ANDROID_TARGET=android-21
|
||||
- ANDROID_ABI=x86_64
|
||||
- ANDROID_TARGET=android-24
|
||||
- ANDROID_ABI=arm64-v8a
|
||||
|
||||
install:
|
||||
- pip install --user 'requests[security]'
|
||||
@ -27,7 +27,7 @@ android:
|
||||
components:
|
||||
- tools
|
||||
- platform-tools
|
||||
- build-tools-27.0.3
|
||||
- build-tools-28.0.3
|
||||
- android-27
|
||||
- extra-android-m2repository
|
||||
- $ANDROID_TARGET
|
||||
@ -37,7 +37,7 @@ licenses:
|
||||
- ".+"
|
||||
|
||||
script:
|
||||
- ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
|
||||
# - ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
|
||||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
||||
- emulator -avd test -no-skin -no-window -logcat *:e &
|
||||
- android-wait-for-emulator
|
||||
@ -50,3 +50,12 @@ script:
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
- ./gradlew testdroidUploadKiwixDebug
|
||||
|
||||
after_failure:
|
||||
- export MY_MOD="app"
|
||||
- export MY_LOG_DIR="$(HOME)/${MY_MOD}/build/outputs/reports/androidTests/connected/"
|
||||
- pwd && cd "${MY_LOG_DIR:-.}" && pwd && ls -al
|
||||
- sudo apt-get install -qq lynx && lynx --dump index.html > myIndex.log
|
||||
- lynx --dump com.android.builder.testing.ConnectedDevice.html > myConnectedDevice.log
|
||||
- lynx --dump com.android.builder.testing.html > myTesting.log
|
||||
- for file in *.log; do echo "$file"; echo "====================="; cat "$file"; done || true
|
Loading…
x
Reference in New Issue
Block a user