Merge pull request #758 from triplem/travis_coverage

Add environment variable to handle testCoverage on travis
This commit is contained in:
Milos Kozak 2018-03-13 20:55:32 +01:00 committed by GitHub
commit 52d558388d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {