Skip to content

Commit

Permalink
Support overriding when attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar authored and rotated8 committed Jun 24, 2020
1 parent d2336d5 commit 7d86a89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/code_climate_after_build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
description: Sum the coverage files and submit to Code Climate.
parameters:
when:
type: string
default: on_success
steps:
- run:
command: |
./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
when: << parameters.when >>
- deploy:
command: |
./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
when: << parameters.when >>

0 comments on commit 7d86a89

Please sign in to comment.