Create tox_environment to allow users access to shell variables

Because we run tox using the shell task, it is possible users will
need to pass custom shell variables to their tox.ini files. Expose a
way for users to do just that.

Change-Id: I0a0c15d85d91fe0a23cf688f0b0f228133922264
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-07-14 09:25:38 -04:00
parent 9258e5b6d8
commit 79dd919742
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@
args:
chdir: "{{ zuul_work_dir }}"
executable: /bin/bash
environment: "{{ tox_environment | default(omit) }}"
shell: |
# If a bundle file is present, call tox with the jenkins version of
# the test environment so it is used. Otherwise, use the normal

View File

@ -20,11 +20,14 @@
This performs basic host and general project setup tasks common
to all tox unit test jobs.
Responds to two variables:
Responds to three variables:
tox_envlist
work against specified environments (ALL selects all)
tox_environment
list of environmental variables to pass to bash shell
tox_command_line
an optional command line
run: playbooks/tox/run