mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 04:33:54 -04:00
#1175 expand logging script
This commit is contained in:
parent
76e43cc5a6
commit
5e95a8ec68
15
.travis.yml
15
.travis.yml
@ -42,15 +42,16 @@ licenses:
|
|||||||
- ".+"
|
- ".+"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# - ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
|
# - ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport
|
||||||
- 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-skin -no-window -logcat *:e &
|
- emulator -avd test -no-skin -no-window &
|
||||||
- android-wait-for-emulator
|
- android-wait-for-emulator
|
||||||
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
|
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
|
||||||
- adb shell input keyevent 82 & # unlock screen by pressing menu button
|
- adb shell input keyevent 82 & # unlock screen by pressing menu button
|
||||||
|
- adb -e logcat *:W > logcat.log &
|
||||||
- ./gradlew createKiwixDebugCoverageReport
|
- ./gradlew createKiwixDebugCoverageReport
|
||||||
- if [ "$TRAVIS_BRANCH" == "release" ];then
|
- if [ "$TRAVIS_BRANCH" == "release" ]; then
|
||||||
./gradlew publishKiwixRelease;
|
./gradlew publishKiwixRelease;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
@ -58,4 +59,8 @@ after_success:
|
|||||||
- ./gradlew testdroidUploadKiwixDebug
|
- ./gradlew testdroidUploadKiwixDebug
|
||||||
|
|
||||||
after_failure:
|
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