Skip to content

Commit c1c2add

Browse files
committed
Add Travis CI and coveralls.io badges
1 parent 8aff4cd commit c1c2add

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jdk:
2222
- oraclejdk8
2323

2424
after_success:
25-
- mvn clean cobertura:cobertura coveralls:report
25+
- mvn clean test jacoco:report coveralls:report

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
Apache Commons CLI
4444
===================
4545

46+
[![Build Status](https://travis-ci.org/apache/commons-cli.svg?branch=master)](https://travis-ci.org/apache/commons-cli)
47+
[![Coverage Status](https://coveralls.io/repos/github/apache/commons-cli/badge.svg?branch=trunk)](https://coveralls.io/github/apache/commons-cli?branch=trunk)
48+
4649
Apache Commons CLI provides a simple API for presenting, processing and validating a command line interface.
4750

4851
Documentation

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,25 @@
330330
</plugins>
331331
</build>
332332
</profile>
333+
334+
<profile>
335+
<id>travis</id>
336+
<activation>
337+
<property>
338+
<name>env.TRAVIS</name>
339+
<value>true</value>
340+
</property>
341+
</activation>
342+
<build>
343+
<plugins>
344+
<plugin>
345+
<groupId>org.eluder.coveralls</groupId>
346+
<artifactId>coveralls-maven-plugin</artifactId>
347+
<version>4.3.0</version>
348+
</plugin>
349+
</plugins>
350+
</build>
351+
</profile>
333352
</profiles>
334353

335354
</project>

0 commit comments

Comments
 (0)