travis 2nd try

This commit is contained in:
Milos Kozak 2018-03-13 23:48:14 +01:00
parent 52d558388d
commit d25855295d
2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,6 @@
language: android language: android
jdk: oraclejdk8 jdk: oraclejdk8
env: env:
- testCoverageEnabled=true
matrix: matrix:
- ANDROID_TARGET=android-23 ANDROID_ABI=x86 - ANDROID_TARGET=android-23 ANDROID_ABI=x86
android: android:
@ -19,7 +18,7 @@ before_install:
script: script:
# Unit Test # Unit Test
- ./gradlew test jacocoTestReport - ./gradlew -Pcoverage test jacocoTestReport
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)

View file

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