Commit c90dd56f authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Fix SonarQube coverage reports.

parent e1ed681a
Pipeline #10432 passed with stage
in 8 minutes and 7 seconds
...@@ -18,4 +18,4 @@ build: ...@@ -18,4 +18,4 @@ build:
- $GRADLE test jacocoTestCoverageVerification - $GRADLE test jacocoTestCoverageVerification
- if [ $NEXUS_USER_NAME ]; then $GRADLE publish; fi - if [ $NEXUS_USER_NAME ]; then $GRADLE publish; fi
- if [ !$NEXUS_USER_NAME ]; then $GRADLE publishToMavenLocal; fi - if [ !$NEXUS_USER_NAME ]; then $GRADLE publishToMavenLocal; fi
- '$GRADLE sonarqube -Dsonar.host.url=$SONAR' - '$GRADLE jacocoTestReport sonarqube -Dsonar.host.url=$SONAR'
...@@ -210,6 +210,7 @@ subprojects { ...@@ -210,6 +210,7 @@ subprojects {
configure(subprojects.findAll { it.provides }) { configure(subprojects.findAll { it.provides }) {
// Code coverage configuration. // Code coverage configuration.
jacocoTestReport { jacocoTestReport {
reports { xml.enabled true }
classDirectories.setFrom(sourceSets.main.output.classesDirs) classDirectories.setFrom(sourceSets.main.output.classesDirs)
} }
jacocoTestCoverageVerification { jacocoTestCoverageVerification {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment