From 54967c31cfc0af7883b46a1f71086772e9256f7c Mon Sep 17 00:00:00 2001 From: vongosling Date: Wed, 18 Jan 2017 14:36:22 +0800 Subject: [PATCH] Polish coveralls,jacoco,sonar and travis-ci integration --- .travis.yml | 17 +++++++---------- pom.xml | 43 ++++++++++++++++++++++++++++++++++++------- 2 files changed, 43 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index c3c525de..2afd6bd9 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 f189bb42..e9ab2ea4 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 -- GitLab