Conditionally disable codecov. By default is not active

pull/1748/head
David Núñez 2020-02-25 21:59:16 -08:00
parent 3a35b0568c
commit 9a42c3a314
1 changed files with 18 additions and 11 deletions

View File

@ -336,18 +336,25 @@ commands:
capture_test_results: capture_test_results:
description: "Store and Upload test results; Follow-up step for tests" description: "Store and Upload test results; Follow-up step for tests"
parameters:
enable_codecov:
type: boolean
default: false
steps: steps:
- codecov - when:
- store_test_results: condition: <<parameters.enable_codecov>>
path: reports steps:
- run: - codecov
name: Prepare test logs for storage as artifacts - store_test_results:
command: | path: reports
mkdir -p ~/test-logs/ - run:
mv ~/.cache/nucypher/log/nucypher.log ~/test-logs/nucypher-container-$CIRCLE_NODE_INDEX.log name: Prepare test logs for storage as artifacts
when: always command: |
- store_artifacts: mkdir -p ~/test-logs/
path: ~/test-logs/ mv ~/.cache/nucypher/log/nucypher.log ~/test-logs/nucypher-container-$CIRCLE_NODE_INDEX.log
when: always
- store_artifacts:
path: ~/test-logs/
build_and_save_test_docker: build_and_save_test_docker:
description: "Build dev docker image for running tests against docker" description: "Build dev docker image for running tests against docker"