Skip to content

Commit

Permalink
enable jacoco root level coverage report for coveralls (fix broken bu…
Browse files Browse the repository at this point in the history
…ild)
  • Loading branch information
terzerm committed Aug 1, 2018
1 parent 16713dd commit 5d6c43d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
}

coveralls {
dependsOn = jacocoRootReport
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
}

tasks.coveralls {
group = 'Coverage reports'
description = 'Uploads the aggregated coverage report to Coveralls'

dependsOn jacocoRootReport
onlyIf { System.env.'CI' && !JavaVersion.current().isJava9Compatible() }
}

0 comments on commit 5d6c43d

Please sign in to comment.