From c7201e76bc23066f379ec1533e50827212b77f78 Mon Sep 17 00:00:00 2001 From: Chris Colvard Date: Wed, 3 Apr 2019 10:27:09 -0400 Subject: [PATCH] Support overriding when attribute --- src/commands/code_climate_after_build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/code_climate_after_build.yml b/src/commands/code_climate_after_build.yml index 4d674f6..3a5d07e 100644 --- a/src/commands/code_climate_after_build.yml +++ b/src/commands/code_climate_after_build.yml @@ -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 >>