Skip to content

Commit

Permalink
Support overriding when attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Apr 3, 2019
1 parent 299e382 commit c7201e7
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 c7201e7

Please sign in to comment.