| https://codecov.io | @codecov | hello@codecov.io |
|---|
This repository serves as an example on how to use Codecov Global for Java with a Gradle build script.
Gradle ships with a JaCoCo plugin. Just add it to your build.gradle.
apply plugin: 'jacoco'And enable the jacoco XML report.
jacocoTestReport { reports { xml.enabled true } }Add to your circle.yml file.
test: post: - if [ -e ./gradlew ]; then ./gradlew jacocoTestReport;else gradle jacocoTestReport;fi - bash <(curl -s https://codecov.io/bash)Another option is our Bash uploader
Add to your .travis.yml file.
test: post: - if [ -e ./gradlew ]; then ./gradlew jacocoTestReport;else gradle jacocoTestReport;fi - bash <(curl -s https://codecov.io/bash) -t uuid-repo-tokenView source and learn more about Codecov Global Uploader