diff --git a/.travis.yml b/.travis.yml index 27d8e9e..c22ec97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,3 +21,6 @@ install: script: - ./scripts/run-tests.sh + +after_success: + - ./gradlew cobertura coveralls diff --git a/build.gradle b/build.gradle index b54b1d4..4d622ce 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,19 @@ +buildscript { + repositories { + mavenCentral() + } + + dependencies { + classpath 'net.saliman:gradle-cobertura-plugin:2.2.4' + classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2' + } +} + apply plugin: 'groovy' apply plugin: 'maven' apply plugin: 'signing' +apply plugin: 'cobertura' +apply plugin: 'com.github.kt3k.coveralls' group = 'com.github.jcandksolutions.gradle' version = '1.5.1-SNAPSHOT' @@ -98,3 +111,5 @@ uploadArchives { } } +cobertura.coverageFormats = ['html', 'xml'] // coveralls plugin depends on xml format report +cobertura.coverageSourceDirs = sourceSets.main.groovy.srcDirs