From 5526c4473674f25b3e73c7331774fe5fac337d28 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 17 Nov 2014 16:49:10 -0500 Subject: [PATCH] Add coveralls support --- .travis.yml | 6 +++++- app-test/build.gradle | 13 +++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) 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