-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from CircleCI-Public/inline-codecov-orb
Inline circleci/codecov orb until it's released
- Loading branch information
Showing
1 changed file
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
codecov: circleci/[email protected] | ||
commands: | ||
upload: | ||
parameters: | ||
path: | ||
description: Path to the code coverage data file to upload. | ||
type: string | ||
steps: | ||
- run: | ||
name: Upload Coverage Results | ||
command: | | ||
curl --request POST --retry 3 --silent --show-error --fail --data-binary @<< parameters.path >> \ | ||
"https://codecov.io/upload/v2?service=circleci\ | ||
&token=$CODECOV_TOKEN\ | ||
&commit=$CIRCLE_SHA1\ | ||
&branch=$CIRCLE_BRANCH\ | ||
&build=$CIRCLE_BUILD_NUM\ | ||
&job=$CIRCLE_NODE_INDEX\ | ||
&build_url=$CIRCLE_BUILD_URL\ | ||
&slug=$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME\ | ||
&pr=$CIRCLE_PR_NUMBER" | ||
executors: | ||
go: | ||
|
@@ -23,7 +41,7 @@ jobs: | |
- store_artifacts: | ||
path: ./coverage.txt | ||
destination: coverage.txt | ||
- codecov/upload: | ||
- upload: | ||
path: coverage.txt | ||
docs: | ||
executor: go | ||
|