Skip to content

Commit

Permalink
+ add jacoco-maven-plugin for cola-components project, activate by mv…
Browse files Browse the repository at this point in the history
…n -Pgen-code-cov
  • Loading branch information
oldratlee committed Jan 12, 2021
1 parent 2f1d27d commit 6d6149b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions cola-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,41 @@
</plugins>
</build>
</profile>
<profile>
<id>gen-code-cov</id>
<activation>
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<!-- for codecov.io -->
<!-- config example: https://github.com/codecov/example-java -->
<!-- plugin docs: http://eclemma.org/jacoco/trunk/doc/ -->
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<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>
</profile>
<profile>
<id>gen-sign</id>
<activation>
Expand Down

0 comments on commit 6d6149b

Please sign in to comment.