mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-02-18 06:59:23 +01:00
Add jacocoRootReport task
This commit is contained in:
parent
5c522ddb29
commit
4dbb4311ad
2 changed files with 7 additions and 4 deletions
|
@ -21,6 +21,5 @@ script: gradle check --stacktrace
|
||||||
after_success:
|
after_success:
|
||||||
- JAVAC_VERSION=$((javac -version) 2>&1)
|
- JAVAC_VERSION=$((javac -version) 2>&1)
|
||||||
# Only run jacocoRootReport in the Java 8 build
|
# 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 jacocoRootReport coveralls; fi
|
||||||
- if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoTestReport coveralls; fi
|
|
||||||
|
|
||||||
|
|
|
@ -221,8 +221,12 @@ coveralls {
|
||||||
sourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs).files.absolutePath
|
sourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs).files.absolutePath
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
task jacocoRootReport(type: JacocoReport) {
|
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 {
|
reports {
|
||||||
xml.enabled true
|
xml.enabled true
|
||||||
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
|
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
|
||||||
|
@ -233,7 +237,7 @@ task jacocoRootReport(type: JacocoReport) {
|
||||||
// in there).
|
// in there).
|
||||||
setOnlyIf { true }
|
setOnlyIf { true }
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
task javadocAll(type: Javadoc) {
|
task javadocAll(type: Javadoc) {
|
||||||
source subprojects.collect {project ->
|
source subprojects.collect {project ->
|
||||||
|
|
Loading…
Reference in a new issue