#1258 reduce severity of unknown nullness and reprioritise travis executions for linting

This commit is contained in:
Sean Mac Gillicuddy 2019-07-12 10:21:24 +01:00
parent 1929b81c76
commit f593ab9620
2 changed files with 7 additions and 5 deletions

View File

@ -56,17 +56,18 @@ before_script:
- adb shell input keyevent 82 & - adb shell input keyevent 82 &
script: script:
- ./gradlew createKiwixDebugCoverageReport lintKiwixDebug jacocoTestKiwixDebugUnitTestReport assemble - ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport createKiwixDebugCoverageReport assemble
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
- ./gradlew kiwixtestUploadKiwix - ./gradlew kiwixtestUploadKiwix
after_failure: after_failure:
- export LOG_DIR = ${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/ - export REPORT_DIR=${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/
- lynx --dump ${LOG_DIR}com.android.builder.testing.ConnectedDevice.html - export LOG_DIR=${REPORT_DIR}androidTests/connected/flavors/KIWIX/
- lynx --dump ${LOG_DIR}com.android.builder.testing.html - lynx -dump ${LOG_DIR}index.html
- lynx --dump ${LOG_DIR}org.kiwix.kiwixmobile.tests.BasicTest.html; - lynx -dump ${REPORT_DIR}lint-results-kiwixDebug.html
before_deploy: before_deploy:
# - export APP_CHANGELOG=$(cat app/src/kiwix/play/release-notes/en-US/default.txt) # - export APP_CHANGELOG=$(cat app/src/kiwix/play/release-notes/en-US/default.txt)

View File

@ -231,6 +231,7 @@ android {
warningsAsErrors true warningsAsErrors true
ignore 'MissingTranslation', //TODO stop ignoring ignore 'MissingTranslation', //TODO stop ignoring
'CheckResult' 'CheckResult'
warning 'UnknownNullness'
baseline file("lint-baseline.xml") baseline file("lint-baseline.xml")
} }