Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2013-07-19 22:54:21 +0000
committerJeff Johnston2013-07-22 16:06:38 +0000
commite749e6a847ac9f0c2105a4eb0f12c2f7917e8dce (patch)
tree663d2698d7a8552a5bff9cc10e0083b495236a9e
parentdae7358b7d5df7ef9da8e5b75ad81b60e92bd088 (diff)
downloadorg.eclipse.cdt-e749e6a847ac9f0c2105a4eb0f12c2f7917e8dce.tar.gz
org.eclipse.cdt-e749e6a847ac9f0c2105a4eb0f12c2f7917e8dce.tar.xz
org.eclipse.cdt-e749e6a847ac9f0c2105a4eb0f12c2f7917e8dce.zip
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>
-rw-r--r--pom.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index ca86f0c43cd..bf03b2050d6 100644
--- a/pom.xml
+++ b/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>

Back to the top