zuul-jobs/roles/tox/tasks/siblings.yaml
Albin Vass d73f16690e Add explanatory comment to tox siblings
Change-Id: I12562f6af25bf56c5489bc436f91017fa25bb474
2020-05-11 15:32:09 +02:00

15 lines
619 B
YAML

# Install sibling with tox so we can replace them later
- name: Run tox without tests
command: "{{ tox_executable }} --notest -e{{ tox_envlist }}"
args:
chdir: "{{ zuul_work_dir }}"
environment: "{{ tox_environment|combine(tox_constraints_env|default({})) }}"
# 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.values() | selectattr('required') | list }}"