Enable coverage only in CI (#4068)

Enable coverage only in CI
This commit is contained in:
Tobias Kaminsky 2019-05-27 11:57:46 +02:00 committed by GitHub
commit 71e73134b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@ steps:
from_secret: GIT_USERNAME
GIT_TOKEN:
from_secret: GIT_TOKEN
ORG_GRADLE_PROJECT_coverage: ''
commands:
- ./gradlew assembleGplay
- emulator -avd android-27 -no-window -no-audio &

View file

@ -125,7 +125,7 @@ android {
buildTypes {
debug {
testCoverageEnabled true
testCoverageEnabled (project.hasProperty('coverage') ? true : false)
}
}