tnguyen1 / jacoco-codecov-java

A test repository to evaluate codecov on a Java Maven project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codecov Java Example

https://codecov.io @codecov hello@codecov.io

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

before_script:
  - pip install --user codecov

after_success:
  - codecov

Another option is our Bash uploader

Private Repos

Add to your .travis.yml file.

env:
  global:
    - CODECOV_TOKEN=:uuid-repo-token

before_script:
  - pip install --user codecov

after_success:
  - codecov

View source and learn more about Codecov Global Uploader

About

A test repository to evaluate codecov on a Java Maven project.


Languages

Language:Java 100.0%