Commit 2cb0cfb8 authored by Matija Obreza's avatar Matija Obreza
Browse files

CI: Code coverage with JaCoCo

parent a98bfa3e
......@@ -25,6 +25,12 @@ run tests in branches:
except:
- master
- /^application\-blocks\-/
artifacts:
reports:
junit:
- core/target/surefire-reports/TEST-*.xml
- security/target/surefire-reports/TEST-*.xml
- auditlog/target/surefire-reports/TEST-*.xml
publish snapshot artifacts:
stage: deploy
......@@ -36,6 +42,12 @@ publish snapshot artifacts:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U
only:
- master
artifacts:
reports:
junit:
- core/target/surefire-reports/TEST-*.xml
- security/target/surefire-reports/TEST-*.xml
- auditlog/target/surefire-reports/TEST-*.xml
publish artifacts on central:
stage: deploy
......
......@@ -157,6 +157,27 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<configuration>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
......@@ -71,33 +71,6 @@
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>site</id>
<phase>pre-site</phase>
<goals>
<goal>cobertura</goal>
</goals>
</execution>
</executions>
<configuration>
<check />
<formats>
<format>html</format>
</formats>
<aggregate>true</aggregate>
<outputDirectory>./target/siteCobertura</outputDirectory>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
......@@ -109,11 +82,6 @@
<tagNameFormat>application-blocks-@{project.version}</tagNameFormat>
</configuration>
</plugin>
<!--cobertura-maven-plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
<!--maven-compiler-plugin -->
<plugin>
<inherited>true</inherited>
......@@ -198,16 +166,6 @@
</profile>
</profiles>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<repository>
<id>ossrh</id>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment