Free as in Freedom: Codeberg.org. Create your repos!
Browse Source

Add jacocoRootReport task

tags/0.0.1-alpha3
Paul Schaub 9 months ago
parent
commit
4dbb4311ad
Signed by: Paul Schaub <vanitasvitae@fsfe.org> GPG Key ID: 62BEE9264BF17311
2 changed files with 7 additions and 4 deletions
  1. 1
    2
      .travis.yml
  2. 6
    2
      build.gradle

+ 1
- 2
.travis.yml View File

@@ -21,6 +21,5 @@ script: gradle check --stacktrace
21 21
 after_success:
22 22
   - JAVAC_VERSION=$((javac -version) 2>&1)
23 23
   # Only run jacocoRootReport in the Java 8 build
24
-  #  - if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoRootReport coveralls; fi
25
-  - if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoTestReport coveralls; fi
24
+  - if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoRootReport coveralls; fi
26 25
 

+ 6
- 2
build.gradle View File

@@ -221,8 +221,12 @@ coveralls {
221 221
 	sourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs).files.absolutePath
222 222
 }
223 223
 
224
-/*
224
+
225 225
 task jacocoRootReport(type: JacocoReport) {
226
+    dependsOn = subprojects.jacocoTestReport
227
+    sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
228
+    classDirectories = files(subprojects.sourceSets.main.output)
229
+    executionData = files(subprojects.jacocoTestReport.executionData)
226 230
     reports {
227 231
         xml.enabled true
228 232
         xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
@@ -233,7 +237,7 @@ task jacocoRootReport(type: JacocoReport) {
233 237
     // in there).
234 238
     setOnlyIf { true }
235 239
 }
236
-*/
240
+
237 241
 
238 242
 task javadocAll(type: Javadoc) {
239 243
     source subprojects.collect {project ->

Loading…
Cancel
Save