Debian Codegraph @

.azure-pipelines/scripts/report-coverage.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2 # Generate code coverage reports for uploading to Azure Pipelines and codecov.io.
3
4 set -o pipefail -eu
5
6 PATH="${PWD}/bin:${PATH}"
7
8 if ! ansible-test --help >/dev/null 2>&1; then
9 # Install the devel version of ansible-test for generating code coverage reports.
10 # This is only used by Ansible Collections, which are typically tested against multiple Ansible versions (in separate jobs).
11 # Since a version of ansible-test is required that can work the output from multiple older releases, the devel version is used.
12 pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
13 fi
14
15 # Generate stubs using docker.
16 # The use of docker is mandatory when Powershell code is present.
17 ansible-test coverage xml --group-by command --stub --docker --color -v