{"id":13995629,"url":"https://github.com/codecov/codecov-bash","last_synced_at":"2025-07-22T22:31:29.735Z","repository":{"id":30541864,"uuid":"34096540","full_name":"codecov/codecov-bash","owner":"codecov","description":"Global coverage report uploader for Codecov","archived":true,"fork":false,"pushed_at":"2022-01-04T00:08:47.000Z","size":1183,"stargazers_count":233,"open_issues_count":22,"forks_count":155,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-08-10T14:20:02.379Z","etag":null,"topics":["codecov","coverage","shell"],"latest_commit_sha":null,"homepage":"https://codecov.io","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecov.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-17T04:31:13.000Z","updated_at":"2024-08-02T15:39:24.000Z","dependencies_parsed_at":"2022-09-22T12:52:30.463Z","dependency_job_id":null,"html_url":"https://github.com/codecov/codecov-bash","commit_stats":null,"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fcodecov-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fcodecov-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fcodecov-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fcodecov-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecov","download_url":"https://codeload.github.com/codecov/codecov-bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227190256,"owners_count":17745236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codecov","coverage","shell"],"created_at":"2024-08-09T14:03:31.281Z","updated_at":"2024-11-29T18:30:45.301Z","avatar_url":"https://github.com/codecov.png","language":"Shell","readme":"## ⚠️ Deprecation Warning ⚠️\n\n**On February 1, 2022, this uploader will be fully sunset and no longer function**\n\nWe recommend all users migrate to the [uploader](https://github.com/codecov/uploader) to prevent any breakages in usage. You can learn more about our deprecation plan and the new uploader on our [blog](https://about.codecov.io/blog/introducing-codecovs-new-uploader/).\n\n-----\n\nCodecov Bash Uploader\n=======================\n### Upload reports to Codecov for almost every supported language.\n[![codecov](https://codecov.io/gh/codecov/codecov-bash/branch/master/graph/badge.svg?token=iEvSTnW9Qm)](https://codecov.io/gh/codecov/codecov-bash)\n\n[Deployed Version](https://codecov.io/bash)\n\n## Running the bash uploader\n\n-----\n```bash\n# All CI\nbash \u003c(curl -s https://codecov.io/bash)\n \n# Pipe to bash (Jenkins)\ncurl -s https://codecov.io/bash | bash -s - -t token\n#                                           ^ add your extra config here\n\n# No bash method\ncurl -s https://codecov.io/bash \u003e .codecov\nchmod +x .codecov\n./.codecov\n```\n-----\n\n#### ⚠️ Verifying the bash uploader\nAs an additional layer of security, users may wish to check the script against the provided SHASUMs.\n\n```bash\ncurl -fLso codecov https://codecov.io/bash;\nVERSION=$(grep -o 'VERSION=\\\"[0-9\\.]*\\\"' codecov | cut -d'\"' -f2);\nfor i in 1 256 512\ndo\n  shasum -a $i -c --ignore-missing \u003c(curl -s \"https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM\")\ndone\n./codecov\n```\n\nor for older versions of `shasum`\n\n```bash\ncurl -fLso codecov https://codecov.io/bash;\nVERSION=$(grep -o 'VERSION=\\\"[0-9\\.]*\\\"' codecov | cut -d'\"' -f2);\nfor i in 1 256 512\ndo\n  shasum -a $i -c \u003c(curl -s \"https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM\" | grep -w \"codecov\")\ndone\n./codecov\n```\n\n### Languages\n\u003e Codecov supports many languages, you can find a full list here: https://docs.codecov.io/docs/supported-languages\n\n\n### Other Usage\n\u003e Below are most commonly used settings. [View full list of commands](https://github.com/codecov/codecov-bash/blob/master/codecov#L56) to see the full list of commands.\n\n```yaml\n# public repo on Travis CI\nafter_success:\n  - bash \u003c(curl -s https://codecov.io/bash)\n```\n\n```yaml\n# private repo\nafter_success:\n  - bash \u003c(curl -s https://codecov.io/bash) -t your-repository-upload-token\n```\n\n```yaml\n# Flag build types\nafter_success:\n  - bash \u003c(curl -s https://codecov.io/bash) -F unittests\n```\n\n```yaml\n# Include environment variables to store per build\nafter_success:\n  - bash \u003c(curl -s https://codecov.io/bash) -e TOX_ENV,CUSTOM_VAR\n```\n\n\u003e 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.\n\n```yaml\nafter_success:\n  - apk -U add git curl bash findutils\n  - bash -c '/bin/bash \u003c(curl -s https://codecov.io/bash)'\n```\n\n### Prevent build failures\nIf Codecov fails to upload reports, you can ensure the CI build does not fail by adding a catch-all:\n\n```\nbash \u003c(curl -s https://codecov.io/bash) || echo \"Codecov did not collect coverage reports\"\n```\n\n\n### CI Providers\n\n|                       Company                       |                                                                    Supported                                                                     | Token Required   |\n|:---------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------:|\n| [Travis CI](https://travis-ci.org/)                 | Yes [![Build Status](https://secure.travis-ci.org/codecov/codecov-bash.svg?branch=master)](http://travis-ci.org/codecov/codecov-bash) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-bash.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-bash?ref=badge_shield) | Private only |\n| [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | Yes | Private only |\n| [CircleCI](https://circleci.com/)                   | Yes | Private only     |\n| [Codeship](https://codeship.com/)                   | Yes | Public \u0026 Private |\n| [Jenkins](https://jenkins-ci.org/)                  | Yes | Public \u0026 Private |\n| [Semaphore](https://semaphoreci.com/)               | Yes | Public \u0026 Private |\n| [TeamCity](https://www.jetbrains.com/teamcity/).    | Yes | Public \u0026 Private |\n| [drone.io](https://drone.io/)                       | Yes | Public \u0026 Private |\n| [AppVeyor](http://www.appveyor.com/)                | Yes | Private only     |\n| [Bamboo](https://www.atlassian.com/software/bamboo) | Yes | Public \u0026 Private |\n| [Bitbucket](https://bitbucket.org/product/features/pipelines) | Yes | Public \u0026 Private |\n| [Bitrise](https://bitrise.io/)                      | Yes | Public \u0026 Private |\n| [buddybuild](https://buddybuild.com)                | Yes | Public \u0026 Private |\n| [Buildkite](https://buildkite.com)                  | Yes | Public \u0026 Private |\n| [Heroku](https://heroku.com)                        | Yes | Public \u0026 Private |\n| [Wercker](http://wercker.com/)                      | Yes | Public \u0026 Private |\n| [Shippable](http://www.shippable.com/)              | Yes | Public \u0026 Private |\n| [Gitlab CI](https://about.gitlab.com/gitlab-ci/)    | Yes | Public \u0026 Private |\n| [Buildkite](https://buildkite.com)                  | Yes | Public \u0026 Private |\n| [GitHub Actions](https://github.com/features/actions) | Yes | Private only |\n| [Cirrus CI](https://cirrus-ci.org/)                 | Yes | Public \u0026 Private |\n| [AWS CodeBuild](https://aws.amazon.com/codebuild/)  | Yes | Public \u0026 Private |\n| git                                                 | Yes (as a fallback) | Public \u0026 Private |\n\n\n### Caveats\n\n1. **Jenkins**: Unable to find reports? Try `PWD=WORKSPACE bash \u003c(curl -s https://codecov.io/bash)`\n\n\n### Development\n\nTo automatically update the hash files after a change to the Codecov uploader script, run\n\n```\n./install.sh\n```\n\nwhich will add the `pre-commit` hooks. You can also update the hash files manually via:\n\n```bash\nfor i in 1 256 512; do shasum -a \"${i}\" codecov \u003e \"SHA${i}SUM\"; done\n```\n\nand add the change to your pull request.\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-bash.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-bash?ref=badge_large)\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fcodecov-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecov%2Fcodecov-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fcodecov-bash/lists"}