Switch to jacoco code coverage analysis #59
This commit is contained in:
parent
a736341010
commit
01aedbd640
@ -9,4 +9,4 @@ branches:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- mvn clean cobertura:cobertura coveralls:report
|
- mvn clean test jacoco:report coveralls:report
|
60
pom.xml
60
pom.xml
@ -15,7 +15,7 @@
|
|||||||
<junit.version>4.12</junit.version>
|
<junit.version>4.12</junit.version>
|
||||||
<compiler.version>3.0</compiler.version>
|
<compiler.version>3.0</compiler.version>
|
||||||
<coveralls.version>3.1.0</coveralls.version>
|
<coveralls.version>3.1.0</coveralls.version>
|
||||||
<cobertura.version>2.6</cobertura.version>
|
<jacoco.version>0.7.2.201409121644</jacoco.version>
|
||||||
</properties>
|
</properties>
|
||||||
<modules>
|
<modules>
|
||||||
<module>abstract-factory</module>
|
<module>abstract-factory</module>
|
||||||
@ -89,7 +89,46 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<!--
|
||||||
|
This plugin's configuration is used to store Eclipse m2e settings only.
|
||||||
|
It has no influence on the Maven build itself.
|
||||||
|
TODO: Remove when the m2e plugin can correctly bind to Maven lifecycle
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.m2e</groupId>
|
||||||
|
<artifactId>lifecycle-mapping</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<lifecycleMappingMetadata>
|
||||||
|
<pluginExecutions>
|
||||||
|
<pluginExecution>
|
||||||
|
<pluginExecutionFilter>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>
|
||||||
|
jacoco-maven-plugin
|
||||||
|
</artifactId>
|
||||||
|
<versionRange>
|
||||||
|
[0.6.2,)
|
||||||
|
</versionRange>
|
||||||
|
<goals>
|
||||||
|
<goal>prepare-agent</goal>
|
||||||
|
</goals>
|
||||||
|
</pluginExecutionFilter>
|
||||||
|
<action>
|
||||||
|
<ignore />
|
||||||
|
</action>
|
||||||
|
</pluginExecution>
|
||||||
|
</pluginExecutions>
|
||||||
|
</lifecycleMappingMetadata>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Tell maven to compile using Java 8 -->
|
<!-- Tell maven to compile using Java 8 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -110,14 +149,17 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
<artifactId>cobertura-maven-plugin</artifactId>
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
<version>${cobertura.version}</version>
|
<version>${jacoco.version}</version>
|
||||||
<configuration>
|
<executions>
|
||||||
<format>xml</format>
|
<execution>
|
||||||
<maxmem>256m</maxmem>
|
<id>prepare-agent</id>
|
||||||
<aggregate>true</aggregate>
|
<goals>
|
||||||
</configuration>
|
<goal>prepare-agent</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user