Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jdk:
- openjdk8
- openjdk7

# Use JDK8 for startup, since JDK7 has issues with TLS when downloading plugins
install:
- JAVA_HOME=$(jdk_switcher home openjdk8) gradle classes testClasses

branches:
only:
- master

after_success:
- gradle jacocoTestReport coveralls
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id 'com.github.kt3k.coveralls' version '2.6.3'
}

apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'java'
Expand Down Expand Up @@ -123,8 +127,17 @@ task integrationTestJWT(type: Test) {
}
}

jacoco {
reportsDir = file("$buildDir/reports/jacoco")
}

jacocoTestReport.dependsOn(integrationTest);
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
//jacocoTestReport.dependsOn(check)

tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all'
Expand Down