From d890e7d75174d54faa79243096b161caa5b066ae Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 30 Nov 2020 12:04:09 +1100 Subject: [PATCH] [CI] Add metadata switch for codecov verbose output (#1494) --- .buildkite/hooks/post-command | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.buildkite/hooks/post-command b/.buildkite/hooks/post-command index a843d66e..920507ee 100755 --- a/.buildkite/hooks/post-command +++ b/.buildkite/hooks/post-command @@ -12,8 +12,11 @@ fi if [[ ! $BUILDKITE_BRANCH =~ ^(v.*) ]] && [[ $BUILDKITE_COMMAND_EXIT_STATUS == 0 ]]; then if [[ $BUILDKITE_LABEL == ":hammer_and_wrench: Unit Test" ]] || [[ $BUILDKITE_LABEL =~ ":selenium:" ]]; then echo "--- :codecov: Upload coverage reports" - bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -v -Z -c -f "coverage.txt" -F backend - bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -v -Z -c -F frontend + if [[ $BUILDKITE_AGENT_META_DATA_CODECOV == "verbose" ]]; then + BUILDKITE_AGENT_META_DATA_CODECOV="-v" + fi + bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -f "coverage.txt" -F backend ${BUILDKITE_AGENT_META_DATA_CODECOV} + bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -F frontend ${BUILDKITE_AGENT_META_DATA_CODECOV} fi fi