Fix error handling in CI other script.
This commit is contained in:
parent
3ab344e8bd
commit
a64665ae91
1 changed files with 4 additions and 0 deletions
|
@ -19,10 +19,14 @@ retry.py pip install tox --disable-pip-version-check
|
||||||
|
|
||||||
errors=0
|
errors=0
|
||||||
|
|
||||||
|
set +e
|
||||||
|
|
||||||
ansible-test compile --color -v --junit --requirements || ((errors++))
|
ansible-test compile --color -v --junit --requirements || ((errors++))
|
||||||
ansible-test sanity --color -v --junit --tox --skip-test ansible-doc --python 2.7 || ((errors++))
|
ansible-test sanity --color -v --junit --tox --skip-test ansible-doc --python 2.7 || ((errors++))
|
||||||
ansible-test sanity --color -v --junit --tox --test ansible-doc --coverage || ((errors++))
|
ansible-test sanity --color -v --junit --tox --test ansible-doc --coverage || ((errors++))
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ ${errors} -gt 0 ]; then
|
if [ ${errors} -gt 0 ]; then
|
||||||
echo "${errors} of the above ansible-test command(s) failed."
|
echo "${errors} of the above ansible-test command(s) failed."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue