diff --git a/.travis.yml b/.travis.yml index 73fe4b80d0..9308dbaa9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: android jdk: oraclejdk8 env: + - testCoverageEnabled=true matrix: - ANDROID_TARGET=android-23 ANDROID_ABI=x86 android: diff --git a/app/build.gradle b/app/build.gradle index 75a930e03b..64f05b0def 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 {