Skip to content

Commit

Permalink
Merge pull request #69 from CircleCI-Public/inline-codecov-orb
Browse files Browse the repository at this point in the history
Inline circleci/codecov orb until it's released
  • Loading branch information
Zachary Scott authored Aug 19, 2018
2 parents cc1d5e2 + df0948e commit 14d2108
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .circleci/config.yml
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:
Expand All @@ -23,7 +41,7 @@ jobs:
- store_artifacts:
path: ./coverage.txt
destination: coverage.txt
- codecov/upload:
- upload:
path: coverage.txt
docs:
executor: go
Expand Down

0 comments on commit 14d2108

Please sign in to comment.