commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [2/5] commons-rng git commit: RNG-11: refactor such that coveralls uses jacoco instead of cobertura
Date Mon, 22 Aug 2016 19:38:31 GMT
RNG-11: refactor such that coveralls uses jacoco instead of cobertura


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

Branch: refs/heads/master
Commit: 1ef022d8569d0622a88acfd46885f4b6a27459fa
Parents: 6dbe130
Author: Rob Tompkins <chtompki@gmail.com>
Authored: Mon Aug 22 07:49:55 2016 -0400
Committer: Rob Tompkins <chtompki@gmail.com>
Committed: Mon Aug 22 07:49:55 2016 -0400

----------------------------------------------------------------------
 pom.xml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 51 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/1ef022d8/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c89ad38..91d59a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -554,14 +554,57 @@
       <build>
         <plugins>
           <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>cobertura-maven-plugin</artifactId>
-            <version>${commons.cobertura.version}</version>
-            <configuration>
-              <formats>
-                <format>xml</format>
-              </formats>
-            </configuration>
+            <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>


Mime
View raw message