Skip to content

Commit

Permalink
Add support for coverage reports
Browse files Browse the repository at this point in the history
Add support for coverage reports through Coveralls.
  • Loading branch information
ExcaliburZero committed Mar 17, 2016
1 parent 693aeca commit 221287d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ jdk:
script:
- gradle test
- gradle javadoc
after_success:
- gradle jacocoTestReport coveralls
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
apply plugin: "java"
plugins {
id "java"
id "jacoco"
id "com.github.kt3k.coveralls" version "2.5.0"
}

sourceSets {
main.java.srcDir "src"
Expand All @@ -12,3 +16,10 @@ repositories {
dependencies {
testCompile "junit:junit:4.12"
}

jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}

0 comments on commit 221287d

Please sign in to comment.