Upload reports to Codecov based on bash script.
Add this code (using JaCoCo Plugin for generate report) to your pom.xml
:
<build>
<plugins>
<!-- JaCoCo Plugin -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</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>
<!-- Codecov Plugin -->
<plugin>
<groupId>dev.alexengrig</groupId>
<artifactId>codecov-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>upload</id>
<phase>test</phase>
<goals>
<goal>upload</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Add CODECOV_TOKEN
with your
token
of Codecov project to
environment variables
in your TravisCI project repository.
This project is licensed under Apache License, version 2.0.