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/28 12:18:39 UTC
svn commit: r1809980 - in /jackrabbit/branches/2.12: ./
jackrabbit-parent/pom.xml
Author: reschke
Date: Thu Sep 28 12:18:38 2017
New Revision: 1809980
URL: http://svn.apache.org/viewvc?rev=1809980&view=rev
Log:
JCR-4101: add code coverage profile (jacoco) (ported to 2.12)
Modified:
jackrabbit/branches/2.12/ (props changed)
jackrabbit/branches/2.12/jackrabbit-parent/pom.xml
Propchange: jackrabbit/branches/2.12/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Sep 28 12:18:38 2017
@@ -1,3 +1,3 @@
/jackrabbit/branches/JCR-2272:1173165-1176545
/jackrabbit/sandbox/JCR-2415-lucene-3.0:1060860-1064038
-/jackrabbit/trunk:1732436,1751279,1752165,1753226,1758600,1759607,1759782,1759865,1761679,1761909,1762422,1763558,1766398,1768684,1771078,1771741,1771939,1771999,1772049,1772299,1772343,1772444,1772457,1772530,1772544,1772597,1772822,1773579,1773591,1773745,1774021,1774443,1775123,1775132,1775315,1775384,1775414,1775419,1775437,1775444,1775463,1775472-1775473,1775481,1775485,1775496,1775509,1775514,1775613,1775617,1775621,1775624,1775629,1775631-1775632,1775634-1775635,1775637,1775657,1776410,1776414,1776416-1776417,1776421,1776907,1776911-1776912,1776914,1776918,1779166,1779460,1780208,1786325,1787043,1787381,1792193,1793315,1793323,1793327,1793332,1796980,1797209,1797917,1798586,1799429
+/jackrabbit/trunk:1732436,1751279,1752165,1753226,1758600,1759607,1759782,1759865,1761679,1761909,1762422,1763558,1766398,1768684,1771078,1771741,1771939,1771999,1772049,1772299,1772343,1772444,1772457,1772530,1772544,1772597,1772822,1773579,1773591,1773745,1774021,1774443,1775123,1775132,1775315,1775384,1775414,1775419,1775437,1775444,1775463,1775472-1775473,1775481,1775485,1775496,1775509,1775514,1775613,1775617,1775621,1775624,1775629,1775631-1775632,1775634-1775635,1775637,1775657,1776410,1776414,1776416-1776417,1776421,1776907,1776911-1776912,1776914,1776918,1779166,1779460,1779632,1780208,1786325,1787043,1787381,1792193,1793315,1793323,1793327,1793332,1796980,1797209,1797917,1798586,1799429
Modified: jackrabbit/branches/2.12/jackrabbit-parent/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.12/jackrabbit-parent/pom.xml?rev=1809980&r1=1809979&r2=1809980&view=diff
==============================================================================
--- jackrabbit/branches/2.12/jackrabbit-parent/pom.xml (original)
+++ jackrabbit/branches/2.12/jackrabbit-parent/pom.xml Thu Sep 28 12:18:38 2017
@@ -43,6 +43,8 @@
</issueManagement>
<properties>
+ <test.opts.memory>-Xmx256m</test.opts.memory>
+ <test.opts>${test.opts.coverage} ${test.opts.memory} -enableassertions</test.opts>
<jetty.version>6.1.22</jetty.version>
<tika.version>1.7</tika.version>
<project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
@@ -58,6 +60,8 @@
<logback.version>1.0.12</logback.version>
<java.version>1.6</java.version>
<java.version.signature>java16</java.version.signature>
+ <skip.coverage>true</skip.coverage>
+ <jacoco.version>0.7.8</jacoco.version>
</properties>
<url>http://jackrabbit.apache.org/</url>
@@ -138,6 +142,12 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>coverage</id>
+ <properties>
+ <skip.coverage>false</skip.coverage>
+ </properties>
+ </profile>
</profiles>
<build>
@@ -212,6 +222,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 -->