Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecov with travis in public repository requires token #456

Closed
dariober opened this issue Nov 23, 2020 · 0 comments
Closed

codecov with travis in public repository requires token #456

dariober opened this issue Nov 23, 2020 · 0 comments

Comments

@dariober
Copy link

Hi- I'm experiencing the same issue reported here. In my case I have:

...
after_success:
    - Rscript tests/covr.R 

and the covr.R script is:

library(covr)
setwd('tests')
xcov <- file_coverage(source_files= '../R/simulation_runner.R', test_files=  c('test_simulation_runner.R'))

codecov(coverage= xcov, token= '853ba810-ff8b-4cc2-9834-3f3817687feb')

This works. But if I remove the token argument I get:

codecov(coverage= xcov)
Error in if (file.exists(path_to_yaml)) { : argument is of length zero

Is this intentional or a bug? I'm using covr 3.5.1. Earlier versions of covr (e.g. 3.2.1) used to work without specifying the token.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant