You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2017/09/04 17:25:13 UTC
svn commit: r1807261 - in /jackrabbit/branches/2.14: ./
jackrabbit-parent/pom.xml
Author: reschke
Date: Mon Sep 4 17:25:13 2017
New Revision: 1807261
URL: http://svn.apache.org/viewvc?rev=1807261&view=rev
Log:
JCR-4101: add code coverage profile (jacoco) (ported to 2.14)
Modified:
jackrabbit/branches/2.14/ (props changed)
jackrabbit/branches/2.14/jackrabbit-parent/pom.xml
Propchange: jackrabbit/branches/2.14/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Sep 4 17:25:13 2017
@@ -1,3 +1,3 @@
/jackrabbit/branches/JCR-2272:1173165-1176545
/jackrabbit/sandbox/JCR-2415-lucene-3.0:1060860-1064038
-/jackrabbit/trunk:1776907,1776911-1776912,1776914,1776918,1779166,1779460,1779614,1780208,1780220,1780406,1785225,1786325,1786330,1787043,1787381,1792100,1792105,1792113,1792193,1793315,1793323,1793327,1793332,1797917,1798586,1799429,1799538,1799549,1799575,1800359,1800378
+/jackrabbit/trunk:1776907,1776911-1776912,1776914,1776918,1779166,1779460,1779614,1779632,1780208,1780220,1780406,1785225,1786325,1786330,1787043,1787381,1792100,1792105,1792113,1792193,1793315,1793323,1793327,1793332,1797917,1798586,1799429,1799538,1799549,1799575,1800359,1800378
Modified: jackrabbit/branches/2.14/jackrabbit-parent/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.14/jackrabbit-parent/pom.xml?rev=1807261&r1=1807260&r2=1807261&view=diff
==============================================================================
--- jackrabbit/branches/2.14/jackrabbit-parent/pom.xml (original)
+++ jackrabbit/branches/2.14/jackrabbit-parent/pom.xml Mon Sep 4 17:25:13 2017
@@ -44,7 +44,7 @@
<properties>
<test.opts.memory>-Xmx256m</test.opts.memory>
- <test.opts>${test.opts.memory} -enableassertions</test.opts>
+ <test.opts>${test.opts.coverage} ${test.opts.memory} -enableassertions</test.opts>
<jetty.version>6.1.26</jetty.version>
<tika.version>1.7</tika.version>
<project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
@@ -59,6 +59,8 @@
<logback.version>1.0.12</logback.version>
<java.version>1.7</java.version>
<java.version.signature>java17</java.version.signature>
+ <skip.coverage>true</skip.coverage>
+ <jacoco.version>0.7.8</jacoco.version>
</properties>
<url>http://jackrabbit.apache.org/</url>
@@ -139,6 +141,12 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>coverage</id>
+ <properties>
+ <skip.coverage>false</skip.coverage>
+ </properties>
+ </profile>
</profiles>
<build>
@@ -216,6 +224,54 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ <executions>
+ <execution>
+ <id>default-prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <skip>${skip.coverage}</skip>
+ <propertyName>test.opts.coverage</propertyName>
+ </configuration>
+ </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>
+ <configuration>
+ <skip>${skip.coverage}</skip>
+ </configuration>
+ </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>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
<!-- JCRSITE-9: Fix versions of key Maven plugins -->