mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Implement on-demand coverage on Shippable. (#24535)
This commit is contained in:
@@ -23,6 +23,12 @@ pip list --disable-pip-version-check
|
||||
|
||||
export PATH="test/runner:${PATH}"
|
||||
export PYTHONIOENCODING='utf-8'
|
||||
export COVERAGE="${COVERAGE:-}"
|
||||
|
||||
# run integration coverage if 'ci_coverage' is in the commit message or the COVERAGE var is non-empty
|
||||
if [[ "${COMMIT_MESSAGE}" =~ ci_coverage ]] || [ -n "${COVERAGE}" ]; then
|
||||
export COVERAGE="--coverage"
|
||||
fi
|
||||
|
||||
# remove empty core/extras module directories from PRs created prior to the repo-merge
|
||||
find lib/ansible/modules -type d -empty -print -delete
|
||||
|
||||
Reference in New Issue
Block a user