Skip to content

codecov/example-groovy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e05ecb3 · Jan 22, 2024

History

18 Commits
Jan 22, 2024
Sep 28, 2014
Apr 21, 2015
Oct 31, 2022
Apr 26, 2018
Mar 25, 2016

Repository files navigation

Codecov Groovy Example

Guide

Travis Setup

Add to your .travis.yml file.

language: java
after_success:
  - bash <(curl -s https://codecov.io/bash)

All other CI you can simply run bash <(curl -s https://codecov.io/bash).

Produce Coverage Reports

Add Jacoco plugin

<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.7.5.201505241946</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>

Caveats

Private Repos

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t uuid-repo-token
  1. More documentation at https://docs.codecov.io
  2. Configure codecov through the codecov.yml https://docs.codecov.io/docs/codecov-yaml

We are happy to help if you have any questions. Please contact email our Support at support@codecov.io