mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
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 <admiller@redhat.com>
This commit is contained in:
parent
85b43f9059
commit
dd249846ec
1 changed files with 4 additions and 2 deletions
|
|
@ -142,8 +142,10 @@ function cleanup
|
||||||
ansible-test coverage xml --color --requirements --group-by command --group-by version ${stub:+"$stub"}
|
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/"
|
cp -a tests/output/reports/coverage=*.xml "$SHIPPABLE_RESULT_DIR/codecoverage/"
|
||||||
|
|
||||||
|
if ! [[ "${x}" =~ "2.9" ]]; then
|
||||||
# analyze and capture code coverage aggregated by integration test target
|
# 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"
|
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
|
# upload coverage report to codecov.io only when using complete on-demand coverage
|
||||||
if [ "${COVERAGE}" == "--coverage" ] && [ "${CHANGED}" == "" ]; then
|
if [ "${COVERAGE}" == "--coverage" ] && [ "${CHANGED}" == "" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue