Merge "Require tox_envlist for tox role"

This commit is contained in:
Jenkins 2017-07-19 22:54:54 +00:00 committed by Gerrit Code Review
commit c7037bb2b4

View File

@ -1,3 +1,8 @@
- name: Require tox_envlist variable - {{ tox_envlist }}
fail:
msg: "tox_envlist is required for this role"
when: tox_envlist is not defined
- name: Run tox
args:
chdir: "{{ zuul_work_dir }}"
@ -10,13 +15,6 @@
venv={{ tox_envlist }}
if [[ -z "$venv" ]]; then
echo "Usage: $?"
echo
echo "VENV: The tox environment to run (eg 'python27')"
exit 1
fi
function process_testr_artifacts {
if [ ! -d ".testrepository" ] ; then
return