File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ description : Sum the coverage files and submit to Code Climate.
2
+ steps :
3
+ - run :
4
+ command : |
5
+ ./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
6
+ - deploy :
7
+ command : |
8
+ ./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
Original file line number Diff line number Diff line change
1
+ description : Install the Code Climate reporter then run before build.
2
+ parameters :
3
+ version :
4
+ type : string
5
+ default : latest
6
+ steps :
7
+ - run :
8
+ command : |
9
+ if [[ $(command -v cc-test-reporter) == "" ]]; then
10
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-<< parameters.version >>-linux-amd64 > ./cc-test-reporter
11
+ chmod +x ./cc-test-reporter
12
+ fi
13
+ - run :
14
+ command : ./cc-test-reporter before-build
You can’t perform that action at this time.
0 commit comments