Skip to content

Commit

Permalink
Skip Ansible 2.9 coverage reporting with new AZP container. (#384)
Browse files Browse the repository at this point in the history
ci_coverage
  • Loading branch information
felixfontein authored Jun 14, 2022
1 parent 5bc0014 commit c4e2117
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .azure-pipelines/scripts/aggregate-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ PATH="${PWD}/bin:${PATH}"

mkdir "${agent_temp_directory}/coverage/"

if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then
exit
fi

options=(--venv --venv-system-site-packages --color -v)

ansible-test coverage combine --group-by command --export "${agent_temp_directory}/coverage/" "${options[@]}"
Expand Down
4 changes: 4 additions & 0 deletions .azure-pipelines/scripts/report-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set -o pipefail -eu

PATH="${PWD}/bin:${PATH}"

if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then
exit
fi

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).
Expand Down

0 comments on commit c4e2117

Please sign in to comment.