Skip to content

Commit

Permalink
Merge pull request #84 from CircleCI-Public/use-latest-codecov-orb
Browse files Browse the repository at this point in the history
Use released 0.0.4 codecov-clojure orb
  • Loading branch information
Zachary Scott authored Aug 30, 2018
2 parents 04b7617 + 229aaf5 commit 1f1866a
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
version: 2.1

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"
orbs:
codecov: circleci/[email protected]

executors:
go:
Expand All @@ -41,7 +23,7 @@ jobs:
- store_artifacts:
path: ./coverage.txt
destination: coverage.txt
- upload:
- codecov/upload:
path: coverage.txt
docs:
executor: go
Expand Down

0 comments on commit 1f1866a

Please sign in to comment.