OCT 1. 更新 gitlab-ci 配置, 支持 jacoco

This commit is contained in:
黄昕 2024-03-06 09:25:20 +08:00
parent 9208499c6c
commit 83881ac808
1 changed files with 34 additions and 0 deletions

34
pom.xml
View File

@ -278,4 +278,38 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>