mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Add support for Sonar reporting.
Change-Id: Ibd6bf69cb88ae41f0e768d5ac50656589eb00ec0 Reviewed-on: https://git.eclipse.org/r/14717 Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> IP-Clean: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
This commit is contained in:
parent
dae7358b7d
commit
e749e6a847
1 changed files with 31 additions and 0 deletions
31
pom.xml
31
pom.xml
|
@ -24,6 +24,9 @@
|
|||
<orbit-site>${download-site}/tools/orbit/downloads/drops/${orbit-version}/repository</orbit-site>
|
||||
<tm-version>3.3</tm-version>
|
||||
<tm-site>${download-site}/tm/updates/${tm-version}</tm-site>
|
||||
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
|
||||
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
|
||||
<sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
|
||||
</properties>
|
||||
|
||||
<licenses>
|
||||
|
@ -326,6 +329,34 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>0.6.2.201302030002</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>pre-test</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!-- Where to put jacoco coverage report -->
|
||||
<destFile>${sonar.jacoco.reportPath}</destFile>
|
||||
<includes>
|
||||
<include>org.eclipse.cdt.*</include>
|
||||
</includes>
|
||||
<append>true</append>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>post-test</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
|
Loading…
Add table
Reference in a new issue