Skip to content

Commit

Permalink
Merge branch 'bugs' into orbs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomorain committed Jul 2, 2018
2 parents 8f62c79 + 12f9554 commit 916757f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
23 changes: 1 addition & 22 deletions .circleci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,7 @@
version: 2

orbs:
codecov:
commands:
upload:
parameters:
path:
type: string
steps:
- run:
name: Upload code coverage report to codecov.io
command: |
curl -ivX POST -H 'Accept: text/plain' \
--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"
codecov: circleci/[email protected]

executors:
go:
Expand Down
8 changes: 3 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
path: ./coverage.txt
destination: coverage.txt
- run:
name: Upload code coverage report to codecov.io
name: Upload Coverage Results
command: |
curl -ivX POST -H 'Accept: text/plain' \
--data-binary @coverage.txt \
"https://codecov.io/upload/v2\
?service=circleci\
curl --request POST --retry 3 --silent --show-error --fail --data-binary @coverage.txt \
"https://codecov.io/upload/v2?service=circleci\
&token=$CODECOV_TOKEN\
&commit=$CIRCLE_SHA1\
&branch=$CIRCLE_BRANCH\
Expand Down

0 comments on commit 916757f

Please sign in to comment.