[ROCKETMQ-187] Measure the code coverage for Integration Tests, and add sonar-apache profile,
closes apache/incubator-rocketmq#96
Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/commit/4f7fc91c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/tree/4f7fc91c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/diff/4f7fc91c
Branch: refs/heads/master
Commit: 4f7fc91c3dee9ff7674c138b1d9d6c2f7da340b1
Parents: 482def9
Author: dongeforever <zhendongliu92@yeah.net>
Authored: Tue May 9 23:38:56 2017 +0800
Committer: dongeforever <zhendongliu92@yeah.net>
Committed: Tue Jun 6 11:37:29 2017 +0800
----------------------------------------------------------------------
.travis.yml | 2 +-
pom.xml | 13 ++++++++++---
2 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/4f7fc91c/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 916cac5..2bc2296 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -40,4 +40,4 @@ script:
after_success:
- mvn clean install -Pit-test
- - mvn sonar:sonar
+ - mvn sonar:sonar -Psonar-apache
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/4f7fc91c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 6fd59ac..05ead63 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,10 +161,10 @@
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
- <!-- URL of the ASF SonarQube server -->
- <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
<!-- Exclude all generated code -->
- <sonar.exclusions>file:**/generated-sources/**</sonar.exclusions>
+ <sonar.jacoco.itReportPath>${project.basedir}/../test/target/jacoco-it.exec</sonar.jacoco.itReportPath>
+ <sonar.exclusions>file:**/generated-sources/**,**/test/**</sonar.exclusions>
+
</properties>
<modules>
@@ -475,6 +475,13 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>sonar-apache</id>
+ <properties>
+ <!-- URL of the ASF SonarQube server -->
+ <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
+ </properties>
+ </profile>
</profiles>
<dependencies>
|