Implement on-demand coverage on Shippable. (#24535)

This commit is contained in:
Matt Clay
2017-05-14 01:08:42 +08:00
committed by GitHub
parent eb5e906014
commit 5cb5228cde
8 changed files with 25 additions and 10 deletions

View File

@@ -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