All Projects → codecov → Codecov Bash

codecov / Codecov Bash

Licence: apache-2.0
Global coverage report uploader for Codecov

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Codecov Bash

Moderncppstarter
🚀 Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format, reproducible dependency management and much more.
Stars: ✭ 2,381 (+982.27%)
Mutual labels:  coverage, codecov
Codecov Node
Global coverage report uploader for Codecov in NodeJS
Stars: ✭ 268 (+21.82%)
Mutual labels:  coverage, codecov
CPP Template
C++ project template : CMake, Test, Travis CI, Appveyor, CodeCoverage, Doxygen
Stars: ✭ 32 (-85.45%)
Mutual labels:  coverage, codecov
gocoverutil
No description or website provided.
Stars: ✭ 25 (-88.64%)
Mutual labels:  coverage, codecov
Example Gradle
Stars: ✭ 68 (-69.09%)
Mutual labels:  coverage, codecov
ts-node-starter
GitHub template to get started with Node.js & TypeScript. ⚡
Stars: ✭ 28 (-87.27%)
Mutual labels:  coverage, codecov
phpunit-travis-ci-coverage-example
phpUnit Testing on Travis-CI with Code Coverage on CodeCov
Stars: ✭ 30 (-86.36%)
Mutual labels:  coverage, codecov
example-objc
Codecov example for Xcode
Stars: ✭ 24 (-89.09%)
Mutual labels:  coverage, codecov
Kcov
Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
Stars: ✭ 515 (+134.09%)
Mutual labels:  coverage, codecov
Learn Istanbul
🏁 Learn how to use the Istanbul JavaScript Code Coverage Tool
Stars: ✭ 332 (+50.91%)
Mutual labels:  coverage, codecov
travis-ci-tutorial-java
Just to learn how to use travis-ci in a java project!
Stars: ✭ 38 (-82.73%)
Mutual labels:  coverage, codecov
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (-26.36%)
Mutual labels:  coverage, codecov
enterprise
Code coverage done right.® On-premise enterprise version.
Stars: ✭ 63 (-71.36%)
Mutual labels:  coverage, codecov
Covr
Test coverage reports for R
Stars: ✭ 285 (+29.55%)
Mutual labels:  coverage, codecov
Example Swift
Codecov: Swift coverage example
Stars: ✭ 121 (-45%)
Mutual labels:  coverage, codecov
Example Cpp11 Cmake
Stars: ✭ 129 (-41.36%)
Mutual labels:  coverage, codecov
Covered
Stars: ✭ 158 (-28.18%)
Mutual labels:  coverage
Minicover
Cross platform code coverage tool for .NET Core
Stars: ✭ 193 (-12.27%)
Mutual labels:  coverage
D.s.a Leet
References and summary for leetcode high-frequency algorithm problems
Stars: ✭ 155 (-29.55%)
Mutual labels:  coverage
Cmake Scripts
A selection of useful scripts for use in CMake projects, include code coverage, sanitizers, and dependency graph generation.
Stars: ✭ 202 (-8.18%)
Mutual labels:  coverage

Codecov Global Uploader

codecov

Upload reports to Codecov for almost every supported language.

Deployed Version

SHA1Sum: hash file


# 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
./.codecov

Languages

Codecov supports many languages, you can find a full list here: https://docs.codecov.io/docs/supported-languages

Usage

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_VAR

When running the codecov-bash uploader on Alpine Linux, you are likely to run into a parsing issue because of the default shell. To be able to upload reports, you need to issue the following commands.

after_success:
  - apk -U add git curl bash findutils
  - bash -c '/bin/bash <(curl -s https://codecov.io/bash)'

Prevent build failures

If 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"

CI Providers

Company Supported Token Required
Travis CI Yes Build Status FOSSA Status Private only
Azure Pipelines Yes Private only
CircleCI Yes Private only
Codeship Yes Public & Private
Jenkins Yes Public & Private
Semaphore Yes Public & Private
TeamCity. Yes Public & Private
drone.io Yes Public & Private
AppVeyor Yes Private only
Bamboo Yes Public & Private
Bitbucket Yes Public & Private
Bitrise Yes Public & Private
buddybuild Yes Public & Private
Buildkite Yes Public & Private
Heroku Yes Public & Private
Wercker Yes Public & Private
Shippable Yes Public & Private
Gitlab CI Yes Public & Private
Buildkite Yes Public & Private
GitHub Actions Yes Private only
Cirrus CI Yes Public & Private
AWS CodeBuild Yes Public & Private
git Yes (as a fallback) Public & Private

Caveats

  1. Jenkins: Unable to find reports? Try PWD=WORKSPACE bash <(curl -s https://codecov.io/bash)

Development

To automatically update the hash files after a change to the Codecov uploader script, run

./install.sh

which will add the pre-commit hooks. You can also update the hash files manually via:

for i in 1 256 512; do shasum -a "${i}" codecov > "SHA${i}SUM"; done

and add the change to your pull request.

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].