Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.23 KB

File metadata and controls

61 lines (48 loc) · 1.23 KB

Codecov Java Example

https://codecov.io @codecov [email protected]

This repository serves as an example on how to use Codecov Global for Java.

Usage

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>

For the newest version check here

Travis CI

Add to your .travis.yml file.

language:
  java

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

Private Repos

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t uuid-repo-token

View source and learn more about Codecov Global Uploader