James E. Blair 9ab259a24d
Support upper-constraints in tox-siblings
Change-Id: I7c8b5ff82603c5ba4aba3db64f16ac9feada089e
2017-10-21 13:21:19 +02:00

20 lines
660 B
YAML

- name: Require tox_envlist variable
fail:
msg: tox_envlist is required for this role
when: tox_envlist is not defined
- name: Run tox without tests
command: "{{ tox_executable }} --notest -e{{ tox_envlist }}"
args:
chdir: "{{ zuul_work_dir }}"
when: tox_install_siblings
# TODO(mordred) handle tox_envlist being a list
- name: Install any sibling python packages
tox_install_sibling_packages:
tox_envlist: "{{ tox_envlist }}"
tox_constraints_file: "{{ tox_constraints_file | default(omit) }}"
project_dir: "{{ zuul_work_dir }}"
projects: "{{ zuul.projects | selectattr('required') | list }}"
when: tox_install_siblings