You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2017/06/09 06:27:07 UTC

commons-cli git commit: Add Travis CI and coveralls.io badges

Repository: commons-cli
Updated Branches:
  refs/heads/master 8aff4cd9a -> c1c2add83


Add Travis CI and coveralls.io badges


Project: http://git-wip-us.apache.org/repos/asf/commons-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-cli/commit/c1c2add8
Tree: http://git-wip-us.apache.org/repos/asf/commons-cli/tree/c1c2add8
Diff: http://git-wip-us.apache.org/repos/asf/commons-cli/diff/c1c2add8

Branch: refs/heads/master
Commit: c1c2add832bbca989a172ae46868e56dc22f6797
Parents: 8aff4cd
Author: Benedikt Ritter <br...@apache.org>
Authored: Fri Jun 9 08:27:00 2017 +0200
Committer: Benedikt Ritter <br...@apache.org>
Committed: Fri Jun 9 08:27:00 2017 +0200

----------------------------------------------------------------------
 .travis.yml |  2 +-
 README.md   |  3 +++
 pom.xml     | 19 +++++++++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-cli/blob/c1c2add8/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index cafe93d..1f8222f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,4 +22,4 @@ jdk:
   - oraclejdk8
 
 after_success:
-  - mvn clean cobertura:cobertura coveralls:report
+  - mvn clean test jacoco:report coveralls:report

http://git-wip-us.apache.org/repos/asf/commons-cli/blob/c1c2add8/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index b128b1c..1378f29 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,9 @@
 Apache Commons CLI
 ===================
 
+[![Build Status](https://travis-ci.org/apache/commons-cli.svg?branch=master)](https://travis-ci.org/apache/commons-cli)
+[![Coverage Status](https://coveralls.io/repos/github/apache/commons-cli/badge.svg?branch=trunk)](https://coveralls.io/github/apache/commons-cli?branch=trunk)
+
 Apache Commons CLI provides a simple API for presenting, processing and validating a command line interface.
 
 Documentation

http://git-wip-us.apache.org/repos/asf/commons-cli/blob/c1c2add8/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b16209e..3eaacd3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -330,6 +330,25 @@
         </plugins>
       </build>
     </profile>
+
+    <profile>
+      <id>travis</id>
+      <activation>
+        <property>
+          <name>env.TRAVIS</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.eluder.coveralls</groupId>
+            <artifactId>coveralls-maven-plugin</artifactId>
+            <version>4.3.0</version>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
 </project>