Example of how to integrate your awesome R project with Codecov.io!
Append to your .travis.yml
r_packages:
- covr
after_success:
- Rscript -e 'library(covr); codecov()'
If your code coverage badge is not updated you should check the travis log first:
- Check that the travis build was successful
The badge must look like this:
- Open the travis build log
Click on the travis build badge (picture) to open the build log.
At the end you can see code coverage section:
- Open the log details of the code coverage
Click on the small triangle at the left side of "$ Rscript..." to see all log details:
If you do not see
$uploaded
[1] TRUE
there was a problem and you will see the error message here.
If the error message is from the covr
package you can try to find the problem by calling covr
on your local computer when the package source code is in the current directory with this R command:
covr::package_coverage(type = "tests")
@jimhester wrote a thorough description found here: jimhester/wercker-r-example
See the coverage reports of this repository at codecov.io
We are happy to help if you have any questions. Please contact email our Support at support@codecov.io