Skip to content

Commit

Permalink
Merge pull request #93 from teiler/codecov
Browse files Browse the repository at this point in the history
add code coverage
  • Loading branch information
thde authored Jun 12, 2017
2 parents 99a0227 + f0c7bbf commit 26b61d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ script:
- ./gradlew check
- ./gradlew integrationTest

after_success: ./gradlew build
after_success:
- ./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/bash)
- ./gradlew build
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ apply plugin: "eclipse"
apply plugin: "idea"

sourceCompatibility = 1.8
sourceSets.main.java.srcDirs = [ "src/main/java", "src/main/resources", "src/dist/sql" ]
sourceSets.test.java.srcDirs = [ "src/test/java", "src/test/resources" ]
sourceSets.main.java.srcDirs = ["src/main/java", "src/main/resources", "src/dist/sql"]
sourceSets.test.java.srcDirs = ["src/test/java", "src/test/resources"]

mainClassName = "io.teiler.server.Tylr"

Expand Down Expand Up @@ -90,6 +90,13 @@ test {
}
}

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

tasks.withType(Checkstyle) {
exclude "src/querydsl/java/**"

Expand Down

0 comments on commit 26b61d8

Please sign in to comment.