diff --git a/.travis.yml b/.travis.yml index 98ac833..9f3325c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ # We still need android to get the build tools/support libraries language: android -script: "bash gradlew jacocoTestReport" \ No newline at end of file +script: + - ./gradlew test + +after_success: + - ./gradlew jacocoTestReport coveralls \ No newline at end of file diff --git a/app-test/build.gradle b/app-test/build.gradle index 7cc07e6..eb9fd24 100644 --- a/app-test/build.gradle +++ b/app-test/build.gradle @@ -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