Skip to content

Commit

Permalink
Add cobertura and coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
superjugy committed Sep 10, 2014
1 parent 0446366 commit 4666517
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ install:

script:
- ./scripts/run-tests.sh

after_success:
- ./gradlew cobertura coveralls
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -98,3 +111,5 @@ uploadArchives {
}
}

cobertura.coverageFormats = ['html', 'xml'] // coveralls plugin depends on xml format report
cobertura.coverageSourceDirs = sourceSets.main.groovy.srcDirs

0 comments on commit 4666517

Please sign in to comment.