
Rename tox_environment to tox_envlist to better map with tox --help documentation. This also allows the following patch to support shell environmental variables. Change-Id: I2fb4e1c167ef93ad2948f2d328beff5e39ac52b7 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
15 lines
342 B
YAML
15 lines
342 B
YAML
- hosts: all
|
|
pre_tasks:
|
|
- shell: tox -l
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}"
|
|
register: envlist
|
|
- set_fact:
|
|
tox_envlist: 'pep8'
|
|
when: envlist.stdout.find('pep8') != -1
|
|
- set_fact:
|
|
tox_envlist: 'linters'
|
|
when: envlist.stdout.find('linters') != -1
|
|
roles:
|
|
- tox
|