Add environment variable to handle testCoverage

This commit is contained in:
Markus M. May 2018-03-13 19:24:08 +01:00
parent 8219332a2c
commit b10f8f2fe1
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
language: android
jdk: oraclejdk8
env:
- testCoverageEnabled=true
matrix:
- ANDROID_TARGET=android-23 ANDROID_ABI=x86
android:

View file

@ -82,7 +82,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
testCoverageEnabled System.getenv("testCoverageEnabled") ? System.getenv("testCoverageEnabled").toBoolean() : false
}
}
productFlavors {