From 65a8dbad8d3a76f988146a603229269b1b2f6ed1 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 3 Jul 2020 20:15:31 +0200 Subject: [PATCH] Fix coverage parameters for shippable script. --- tests/utils/shippable/shippable.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/utils/shippable/shippable.sh b/tests/utils/shippable/shippable.sh index 7c347d7ec6..9bcdd2bbee 100755 --- a/tests/utils/shippable/shippable.sh +++ b/tests/utils/shippable/shippable.sh @@ -147,11 +147,13 @@ function cleanup set -ux # shellcheck disable=SC2086 - ansible-test coverage xml --color --requirements --group-by command --group-by version ${stub:+"$stub"} + ansible-test coverage xml --color -v --requirements --group-by command --group-by version ${stub:+"$stub"} cp -a tests/output/reports/coverage=*.xml "$SHIPPABLE_RESULT_DIR/codecoverage/" - # analyze and capture code coverage aggregated by integration test target - ansible-test coverage analyze targets generate -v "$SHIPPABLE_RESULT_DIR/testresults/coverage-analyze-targets.json" + if [ "${ansible_version}" != "2.9" ]; then + # analyze and capture code coverage aggregated by integration test target + ansible-test coverage analyze targets generate -v "$SHIPPABLE_RESULT_DIR/testresults/coverage-analyze-targets.json" + fi # upload coverage report to codecov.io only when using complete on-demand coverage if [ "${COVERAGE}" == "--coverage" ] && [ "${CHANGED}" == "" ]; then