kennytm / cargo-kcov

Cargo subcommand to run kcov to get coverage report on Linux
127 stars 20 forks source link

cargo-kcov and CI != Travis #42

Closed pJunger closed 4 years ago

pJunger commented 4 years ago

Hi,

cargo-kcov seems to assume that it's running on Travis CI if --coveralls is used. kcov itselfs takes the Travis Job ID or a token - maybe something like that could be (optionally) exposed by cargo-kcov as well?

kennytm commented 4 years ago

You could define the $TRAVIS_JOB_ID env var, like:

TRAVIS_JOB_ID=«job_id» cargo kcov ...
pJunger commented 4 years ago

Thank you!