mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ci_coverage
(cherry picked from commit 48fbd69835
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
a876936ce5
commit
74be3189d9
2 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,10 @@ PATH="${PWD}/bin:${PATH}"
|
||||||
|
|
||||||
mkdir "${agent_temp_directory}/coverage/"
|
mkdir "${agent_temp_directory}/coverage/"
|
||||||
|
|
||||||
|
if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
options=(--venv --venv-system-site-packages --color -v)
|
options=(--venv --venv-system-site-packages --color -v)
|
||||||
|
|
||||||
ansible-test coverage combine --group-by command --export "${agent_temp_directory}/coverage/" "${options[@]}"
|
ansible-test coverage combine --group-by command --export "${agent_temp_directory}/coverage/" "${options[@]}"
|
||||||
|
|
|
@ -5,6 +5,10 @@ set -o pipefail -eu
|
||||||
|
|
||||||
PATH="${PWD}/bin:${PATH}"
|
PATH="${PWD}/bin:${PATH}"
|
||||||
|
|
||||||
|
if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
if ! ansible-test --help >/dev/null 2>&1; then
|
if ! ansible-test --help >/dev/null 2>&1; then
|
||||||
# Install the devel version of ansible-test for generating code coverage reports.
|
# 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).
|
# This is only used by Ansible Collections, which are typically tested against multiple Ansible versions (in separate jobs).
|
||||||
|
|
Loading…
Reference in a new issue