travis 2nd try
This commit is contained in:
parent
52d558388d
commit
d25855295d
2 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
language: android
|
||||
jdk: oraclejdk8
|
||||
env:
|
||||
- testCoverageEnabled=true
|
||||
matrix:
|
||||
- ANDROID_TARGET=android-23 ANDROID_ABI=x86
|
||||
android:
|
||||
|
@ -19,7 +18,7 @@ before_install:
|
|||
|
||||
script:
|
||||
# Unit Test
|
||||
- ./gradlew test jacocoTestReport
|
||||
- ./gradlew -Pcoverage test jacocoTestReport
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
|
@ -82,7 +82,7 @@ android {
|
|||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug {
|
||||
testCoverageEnabled System.getenv("testCoverageEnabled") ? System.getenv("testCoverageEnabled").toBoolean() : false
|
||||
testCoverageEnabled (project.hasProperty('coverage') ? true : false)
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
|
|
Loading…
Reference in a new issue