Skip to content

Commit

Permalink
#1175 disable unit tests temporarily, print logs on connected test fa…
Browse files Browse the repository at this point in the history
…ilure
  • Loading branch information
BBT-SeanMacGillicuddy committed May 24, 2019
1 parent 54d4602 commit e8f4c1d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit e8f4c1d

Please sign in to comment.