commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject commons-io git commit: enable coveralls
Date Wed, 09 Nov 2016 21:05:19 GMT
Repository: commons-io
Updated Branches:
  refs/heads/master 97fdb4b3a -> 0b3139a73


enable coveralls


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

Branch: refs/heads/master
Commit: 0b3139a73e03b5a92f2370d9b086d3208fe0b5a0
Parents: 97fdb4b
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Wed Nov 9 22:05:12 2016 +0100
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Wed Nov 9 22:05:12 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/commons-io/blob/0b3139a7/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index e0b13f4..2ac2ac5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,4 +21,4 @@ jdk:
   - oraclejdk8
 
 after_success:
-  - mvn clean test
+  - mvn clean test jacoco:report coveralls:report

http://git-wip-us.apache.org/repos/asf/commons-io/blob/0b3139a7/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index ad1f5ee..cb96c17 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,10 @@
 Apache Commons IO
 ===================
 
+[![Build Status](https://travis-ci.org/apache/commons-text.svg?branch=master)](https://travis-ci.org/apache/commons-text)
+[![Coverage Status](https://coveralls.io/repos/apache/commons-text/badge.svg?branch=master)](https://coveralls.io/r/apache/commons-text)
+[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
+
 The Apache Commons IO library contains utility classes, stream implementations, file filters,

 file comparators, endian transformation classes, and much more.
 

http://git-wip-us.apache.org/repos/asf/commons-io/blob/0b3139a7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 09e27b8..2060a9a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -415,5 +415,76 @@ file comparators, endian transformation classes, and much more.
         <additionalparam>-Xdoclint:none</additionalparam>
       </properties>
     </profile>
+    <profile>
+      <id>travis</id>
+      <activation>
+        <property>
+          <name>env.TRAVIS</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.jacoco</groupId>
+            <artifactId>jacoco-maven-plugin</artifactId>
+            <version>${commons.jacoco.version}</version>
+            <executions>
+              <execution>
+                <id>default-prepare-agent</id>
+                <goals>
+                  <goal>prepare-agent</goal>
+                </goals>
+              </execution>
+              <execution>
+                <id>default-prepare-agent-integration</id>
+                <goals>
+                  <goal>prepare-agent-integration</goal>
+                </goals>
+              </execution>
+              <execution>
+                <id>default-report</id>
+                <goals>
+                  <goal>report</goal>
+                </goals>
+              </execution>
+              <execution>
+                <id>default-report-integration</id>
+                <goals>
+                  <goal>report-integration</goal>
+                </goals>
+              </execution>
+              <execution>
+                <id>default-check</id>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <!--  implementation is needed only for Maven 2  -->
+                    <rule implementation="org.jacoco.maven.RuleConfiguration">
+                      <element>BUNDLE</element>
+                      <limits>
+                        <!--  implementation is needed only for Maven 2  -->
+                        <limit implementation="org.jacoco.report.check.Limit">
+                          <counter>COMPLEXITY</counter>
+                          <value>COVEREDRATIO</value>
+                          <minimum>0.60</minimum>
+                        </limit>
+                      </limits>
+                    </rule>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.eluder.coveralls</groupId>
+            <artifactId>coveralls-maven-plugin</artifactId>
+            <version>3.1.0</version>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>


Mime
View raw message