You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by vo...@apache.org on 2017/01/18 06:36:32 UTC
incubator-rocketmq git commit: Polish coveralls, jacoco,
sonar and travis-ci integration
Repository: incubator-rocketmq
Updated Branches:
refs/heads/master cc069a131 -> 54967c31c
Polish coveralls,jacoco,sonar and travis-ci integration
Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/commit/54967c31
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/tree/54967c31
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/diff/54967c31
Branch: refs/heads/master
Commit: 54967c31cfc0af7883b46a1f71086772e9256f7c
Parents: cc069a1
Author: vongosling <vo...@apache.org>
Authored: Wed Jan 18 14:36:22 2017 +0800
Committer: vongosling <vo...@apache.org>
Committed: Wed Jan 18 14:36:22 2017 +0800
----------------------------------------------------------------------
.travis.yml | 17 +++++++----------
pom.xml | 43 ++++++++++++++++++++++++++++++++++++-------
2 files changed, 43 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/54967c31/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index c3c525d..2afd6bd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,20 +4,18 @@ notifications:
- dev@rocketmq.incubator.apache.org
on_success: change
on_failure: always
-
+
+language: java
+
matrix:
include:
# On OSX, run with default JDK only.
- - language: java
- os: osx
# On Linux, run with specific JDKs only.
- - language: java
- os: linux
env: CUSTOM_JDK="oraclejdk8"
- - language: java
- os: linux
env: CUSTOM_JDK="oraclejdk7"
- - language: java
- os: linux
env: CUSTOM_JDK="openjdk7"
@@ -26,7 +24,7 @@ before_install:
- cat ~/.mavenrc
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi
-#
+
#os:
# - linux
# - osx
@@ -36,9 +34,8 @@ before_install:
# - openjdk7
-#script:
-# - travis_retry mvn --batch-mode clean apache-rat:check
-# - travis_wait 60 mvn --batch-mode clean package findbugs:check
+script:
+ - travis_retry mvn -B clean apache-rat:check package jacoo:report coveralls:report
after_success:
- - mvn clean apache-rat:check cobertura:cobertura coveralls:report
+ - mvn sonar:sonar
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/54967c31/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index f189bb4..e9ab2ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@
<artifactId>rocketmq-all</artifactId>
<version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
- <name>Apache RocketMQ git s${project.version}</name>
+ <name>Apache RocketMQ ${project.version}</name>
<url>http://rocketmq.incubator.apache.org/</url>
<prerequisites>
@@ -152,6 +152,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
<!--maven properties -->
<maven.test.skip>false</maven.test.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
@@ -159,6 +161,14 @@
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
+ <!-- BEFORE SonarQube 4.4.0 - the destination file for the code coverage report has to be set to the same value
+ in the parent pom and in each module pom. Then JaCoCo will add up information in
+ the same report, so that, it will give the cross-module code coverage. -->
+ <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+ <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+ <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
+ <sonar.jacoco.itReportPath>${project.basedir}/../target/jacoco-it.exec</sonar.jacoco.itReportPath>
+ <sonar.language>java</sonar.language>
<!-- URL of the ASF SonarQube server -->
<sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
<!-- Exclude all generated code -->
@@ -329,14 +339,33 @@
<version>4.3.0</version>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.7</version>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.7.6.201602180812</version>
<configuration>
- <format>xml</format>
- <!-- aggregated reports for multi-module projects -->
- <aggregate>true</aggregate>
+ <append>true</append>
</configuration>
+ <executions>
+ <execution>
+ <id>agent-for-ut</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>agent-for-it</id>
+ <goals>
+ <goal>prepare-agent-integration</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>