Upload reports to Codecov for almost every supported language.
# All CI
bash <(curl -s https://codecov.io/bash)
# Pipe to bash (Jenkins)
curl -s https://codecov.io/bash | bash -s - -t token
^ add your extra config here
# No bash method
curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
./.codecovPython, C#/.net, Java, Node/Javascript/Coffee, C/C++, D, Go, Groovy, Kotlin, PHP, R, Scala, Xtern, Xcode, Lua and more...
Below are most commonly used settings. View full list of commands to see the full list of commands.
# public repo on Travis CI
after_success:
- bash <(curl -s https://codecov.io/bash)# private repo
after_success:
- bash <(curl -s https://codecov.io/bash) -t your-repository-upload-token# Flag build types
after_success:
- bash <(curl -s https://codecov.io/bash) -F unittests# Include environment variables to store per build
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV,CUSTOM_VARIf Codecov fails to upload reports, you can ensure the CI build does not fail by adding a catch-all:
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
Using Travis CI? Uploader is compatible with
sudo: falsewhich can speed up your builds. 👍
- Jenkins: Unable to find reports? Try
PWD=WORKSPACE bash <(curl -s https://codecov.io/bash)
- Please let us know if this works for you. More at #112
