From dd249846ec61946712f5b76561bae9e1fe9af3fc Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Fri, 31 Jul 2020 15:22:32 -0500 Subject: [PATCH] don't run coverage analyze on Ansible 2.9 Fixes #73 https://github.com/ansible-collections/ansible.posix/issues/73 Signed-off-by: Adam Miller --- tests/utils/shippable/shippable.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/utils/shippable/shippable.sh b/tests/utils/shippable/shippable.sh index c5b0bb6..0557c69 100755 --- a/tests/utils/shippable/shippable.sh +++ b/tests/utils/shippable/shippable.sh @@ -142,8 +142,10 @@ function cleanup ansible-test coverage xml --color --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 ! [[ "${x}" =~ "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