Merge "Rename tox_upper_constraints_file to tox_constraints_file"

This commit is contained in:
Zuul 2017-09-22 16:33:17 +00:00 committed by Gerrit Code Review
commit 577ff9710b
3 changed files with 9 additions and 9 deletions

View File

@ -21,9 +21,9 @@ Runs tox for a project
String of extra command line options to pass to tox.
.. zuul:rolevar:: tox_upper_constraints_file
.. zuul:rolevar:: tox_constraints_file
Path to an upper constraints file. Will be provided to tox via
Path to a pip constraints file. Will be provided to tox via
UPPER_CONSTRAINTS_FILE environment variable if it exists.
.. zuul:rolevar:: zuul_work_dir

View File

@ -5,21 +5,21 @@
- name: Check to see if the constraints file exists
stat:
path: "{{ tox_upper_constraints_file }}"
path: "{{ tox_constraints_file|default('missing') }}"
get_checksum: false
get_mime: false
get_md5: false
register: stat_results
when: tox_upper_constraints_file is defined
when: tox_constraints_file is defined
- name: Record file location
set_fact:
tox_upper_constraints_env:
UPPER_CONSTRAINTS_FILE: "{{ tox_upper_constraints_file }}"
tox_constraints_env:
UPPER_CONSTRAINTS_FILE: "{{ tox_constraints_file }}"
when: not stat_results|skipped and stat_results.stat.exists
- name: Run tox
args:
chdir: "{{ zuul_work_dir }}"
environment: "{{ tox_environment|combine(tox_upper_constraints_env|default({})) }}"
environment: "{{ tox_environment|combine(tox_constraints_env|default({})) }}"
command: "{{ tox_executable }} -e{{ tox_envlist }} {{ tox_extra_args }}"

View File

@ -35,9 +35,9 @@
String containing extra arguments to append to the tox command line.
.. zuul:jobvar: tox_upper_constraints_file
.. zuul:jobvar: tox_constraints_file
Path to an upper constraints file. Will be provided to tox via
Path to a pip constraints file. Will be provided to tox in the
UPPER_CONSTRAINTS_FILE environment variable if it exists.
.. zuul:jobvar: tox_install_siblings