AZP Coverage support for Ansible 2.9 (#51)

Pull in latest changes from shippable-migration-tool
ci_complete ci_coverage
This commit is contained in:
John R Barker
2020-12-16 11:42:20 +00:00
committed by GitHub
parent 8bd33b06c4
commit c549e7a1cd
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -5,6 +5,11 @@ set -o pipefail -eu
PATH="${PWD}/bin:${PATH}"
pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
if ! ansible-test --help >/dev/null 2>&1; then
# Install the devel version of ansible-test for generating code coverage reports.
# This is only used by Ansible Collections, which are typically tested against multiple Ansible versions (in separate jobs).
# Since a version of ansible-test is required that can work the output from multiple older releases, the devel version is used.
pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
fi
ansible-test coverage xml --stub --venv --venv-system-site-packages --color -v