项目作者: codecov

项目描述 :
Groovy coverage example
高级语言: Groovy
项目地址: git://github.com/codecov/example-groovy.git
创建时间: 2014-09-28T18:53:21Z
项目社区:https://github.com/codecov/example-groovy

开源协议:

下载


Codecov Groovy Example

Guide

Travis Setup

Add to your .travis.yml file.

  1. language: java
  2. after_success:
  3. - 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

  1. <plugin>
  2. <groupId>org.jacoco</groupId>
  3. <artifactId>jacoco-maven-plugin</artifactId>
  4. <version>0.7.5.201505241946</version>
  5. <executions>
  6. <execution>
  7. <goals>
  8. <goal>prepare-agent</goal>
  9. </goals>
  10. </execution>
  11. <execution>
  12. <id>report</id>
  13. <phase>test</phase>
  14. <goals>
  15. <goal>report</goal>
  16. </goals>
  17. </execution>
  18. </executions>
  19. </plugin>

Caveats

Private Repos

Add to your .travis.yml file.

  1. after_success:
  2. - 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