diff --git a/.travis.yml b/.travis.yml index dde009847..69a46938d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,15 +42,16 @@ 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 - ./gradlew publishKiwixRelease; + - if [ "$TRAVIS_BRANCH" == "release" ]; then + ./gradlew publishKiwixRelease; fi after_success: @@ -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; \ No newline at end of file + - 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 \ No newline at end of file