Add coveralls support

robolectric-error
Bradlee Speice 2014-11-17 16:49:10 -05:00
parent 5fbbf4ac13
commit 5526c44736
2 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,8 @@
# We still need android to get the build tools/support libraries
language: android
script: "bash gradlew jacocoTestReport"
script:
- ./gradlew test
after_success:
- ./gradlew jacocoTestReport coveralls

View File

@ -1,6 +1,17 @@
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
}
}
def androidModule = project(':app')
def firstVariant = androidModule.android.applicationVariants.toList().first()
@ -39,8 +50,6 @@ jacocoTestReport {
}
// Back to your regularly scheduled Jacoco
dependsOn test
reports {
xml.enabled true
csv.enabled false