Add coverage flag

pull/820/head
Alex Baker 7 years ago
parent 4e95c6b5b5
commit 2032aaab0f

@ -28,7 +28,7 @@ before_install:
script:
- ./gradlew :app:lintGoogleplayRelease
- ./gradlew :app:createGoogleplayDebugAndroidTestCoverageReport
- ./gradlew -Pcoverage :app:createGoogleplayDebugAndroidTestCoverageReport
after_success:
- bash <(curl -s https://codecov.io/bash)

@ -49,7 +49,7 @@ android {
applicationIdSuffix ".debug"
resValue 'string', 'mapbox_key', project.hasProperty('tasks_mapbox_key_debug') ? tasks_mapbox_key_debug : ''
resValue 'string', 'google_key', project.hasProperty('tasks_google_key_debug') ? tasks_google_key_debug : ''
testCoverageEnabled true
testCoverageEnabled project.hasProperty('coverage')
}
release {
resValue 'string', 'mapbox_key', project.hasProperty('tasks_mapbox_key') ? tasks_mapbox_key : ''

Loading…
Cancel
Save