#1175 expand logging script

This commit is contained in:
Sean Mac Gillicuddy 2019-05-24 13:20:07 +01:00
parent 76e43cc5a6
commit 5e95a8ec68

View File

@ -42,14 +42,15 @@ licenses:
- ".+"
script:
# - ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
# - ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-window -logcat *:e &
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- adb shell input keyevent 82 & # unlock screen by pressing menu button
- adb -e logcat *:W > logcat.log &
- ./gradlew createKiwixDebugCoverageReport
- if [ "$TRAVIS_BRANCH" == "release" ];then
- if [ "$TRAVIS_BRANCH" == "release" ]; then
./gradlew publishKiwixRelease;
fi
@ -58,4 +59,8 @@ after_success:
- ./gradlew testdroidUploadKiwixDebug
after_failure:
- lynx -dump ${HOME}/build/kiwix/kiwix-android/app/build/reports/androidTests/connected/flavors/KIWIX/org.kiwix.kiwixmobile.tests.BasicTest.html;
- export LOG_DIR=${HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX
- lynx --dump ${LOG_DIR}com.android.builder.testing.ConnectedDevice.html
- lynx --dump ${LOG_DIR}com.android.builder.testing.html
- lynx -dump ${LOG_DIR}org.kiwix.kiwixmobile.tests.BasicTest.html;
- echo " LOGCAT "; echo "========"; cat logcat.log; pkill -KILL -f adb