🧪 Drop venv when making coverage XML @ CI

This deletes the fallback that would use `--venv` when `--docker` is
unavailable in `ansible-test`. But this option is present in all
supported versions of Ansible as it was added in v2.12 which is EOL
already.

PR #84819
pull/81854/merge
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) 9 months ago committed by GitHub
parent 9821a4de2f
commit 2e7e5b65e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -12,6 +12,6 @@ if ! ansible-test --help >/dev/null 2>&1; then
pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
fi fi
# Generate stubs using docker (if supported) otherwise fall back to using a virtual environment instead. # Generate stubs using docker.
# The use of docker is required when Powershell code is present, but Ansible 2.12 was the first version to support --docker with coverage. # The use of docker is mandatory when Powershell code is present.
ansible-test coverage xml --group-by command --stub --docker --color -v || ansible-test coverage xml --group-by command --stub --venv --color -v ansible-test coverage xml --group-by command --stub --docker --color -v

Loading…
Cancel
Save