mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
#1175 expand logging script
This commit is contained in:
parent
76e43cc5a6
commit
5e95a8ec68
13
.travis.yml
13
.travis.yml
@ -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
|
Loading…
x
Reference in New Issue
Block a user