diff --git a/.travis.yml b/.travis.yml
index c3c525defcf64d38789f8e21e77f31529c4e95fb..2afd6bd902d40e37eb9527cf1ffff356c94c8089 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
diff --git a/pom.xml b/pom.xml
index f189bb422c5ed18116b8b4b8ba1b71375fd98e53..e9ab2ea4c0f057b279635f11bed37c69a2165ac7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@
rocketmq-all
4.0.0-SNAPSHOT
pom
- Apache RocketMQ git s${project.version}
+ Apache RocketMQ ${project.version}
http://rocketmq.incubator.apache.org/
@@ -152,6 +152,8 @@
UTF-8
+ UTF-8
+
false
true
@@ -159,6 +161,14 @@
1.7
1.7
+
+ jacoco
+ reuseReports
+ ${project.basedir}/../target/jacoco.exec
+ ${project.basedir}/../target/jacoco-it.exec
+ java
https://builds.apache.org/analysis
@@ -329,14 +339,33 @@
4.3.0
- org.codehaus.mojo
- cobertura-maven-plugin
- 2.7
+ org.jacoco
+ jacoco-maven-plugin
+ 0.7.6.201602180812
- xml
-
- true
+ true
+
+
+ agent-for-ut
+
+ prepare-agent
+
+
+
+ agent-for-it
+
+ prepare-agent-integration
+
+
+
+ report
+ prepare-package
+
+ report
+
+
+
org.codehaus.mojo