From 0623b3c6392e717af6879cd3bf78fc2ca40308f4 Mon Sep 17 00:00:00 2001 From: vongosling Date: Tue, 17 Jan 2017 13:57:33 +0800 Subject: [PATCH] Integrate travis-ci with coveralls --- .travis.yml | 7 +++++++ README.md | 2 +- pom.xml | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b2168ad3..a9927e27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,10 @@ jdk: - oraclejdk8 - oraclejdk7 - openjdk7 + +script: + - travis_retry mvn --batch-mode clean apache-rat:check + - travis_wait 60 mvn --batch-mode clean package findbugs:check + +after_success: + - mvn clean cobertura:cobertura coveralls:report diff --git a/README.md b/README.md index a0259f0b..32c86fe3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## RocketMQ [![Build Status](https://travis-ci.org/apache/incubator-rocketmq.svg?branch=master)](https://travis-ci.org/apache/incubator-rocketmq) +## RocketMQ [![Build Status](https://travis-ci.org/apache/incubator-rocketmq.svg?branch=master)](https://travis-ci.org/apache/incubator-rocketmq) [![Coverage Status](https://coveralls.io/repos/github/apache/incubator-rocketmq/badge.svg?branch=master)](https://coveralls.io/github/apache/incubator-rocketmq?branch=master) [![Maven Central](https://img.shields.io/badge/maven--center-stable--version-green.svg)](http://search.maven.org/#search%7Cga%7C1%7Corg.apache.rocketmq) [![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.org/apache/rocketmqreleases) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) diff --git a/pom.xml b/pom.xml index 617ac9ce..afd3d847 100644 --- a/pom.xml +++ b/pom.xml @@ -322,6 +322,21 @@ coveralls-maven-plugin 4.3.0 + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + xml + + true + + + + org.codehaus.mojo + findbugs-maven-plugin + 3.0.4 + -- GitLab