提交 54967c31 编写于 作者: V vongosling

Polish coveralls,jacoco,sonar and travis-ci integration

上级 cc069a13
......@@ -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
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册