Skip to content

Commit

Permalink
Add jacocoRootReport
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed Jul 24, 2018
1 parent 5c522dd commit a2c639d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -21,6 +21,5 @@ script: gradle check --stacktrace
after_success:
- JAVAC_VERSION=$((javac -version) 2>&1)
# Only run jacocoRootReport in the Java 8 build
# - if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoRootReport coveralls; fi
- if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoTestReport coveralls; fi
- if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoRootReport coveralls; fi

8 changes: 6 additions & 2 deletions build.gradle
Expand Up @@ -221,8 +221,12 @@ coveralls {
sourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs).files.absolutePath
}

/*

task jacocoRootReport(type: JacocoReport) {
dependsOn = subprojects.jacocoTestReport
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories = files(subprojects.sourceSets.main.output)
executionData = files(subprojects.jacocoTestReport.executionData)
reports {
xml.enabled true
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
Expand All @@ -233,7 +237,7 @@ task jacocoRootReport(type: JacocoReport) {
// in there).
setOnlyIf { true }
}
*/


task javadocAll(type: Javadoc) {
source subprojects.collect {project ->
Expand Down

0 comments on commit a2c639d

Please sign in to comment.