diff options
Diffstat (limited to 'ansible_collections/community/libvirt/.azure-pipelines/scripts/aggregate-coverage.sh')
-rwxr-xr-x | ansible_collections/community/libvirt/.azure-pipelines/scripts/aggregate-coverage.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ansible_collections/community/libvirt/.azure-pipelines/scripts/aggregate-coverage.sh b/ansible_collections/community/libvirt/.azure-pipelines/scripts/aggregate-coverage.sh new file mode 100755 index 000000000..2200502f5 --- /dev/null +++ b/ansible_collections/community/libvirt/.azure-pipelines/scripts/aggregate-coverage.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Aggregate code coverage results for later processing. + +set -o pipefail -eu + +agent_temp_directory="$1" + +PATH="${PWD}/bin:${PATH}" + +mkdir "${agent_temp_directory}/coverage/" + +options=(--venv --venv-system-site-packages --color -v) + +ansible-test coverage combine --export "${agent_temp_directory}/coverage/" "${options[@]}" +ansible-test coverage analyze targets generate "${agent_temp_directory}/coverage/coverage-analyze-targets.json" "${options[@]}" |