zuul-jobs/playbooks/tox/linters.yaml
Paul Belanger 9258e5b6d8
Update to tox_envlist variable
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>
2017-07-14 11:49:20 -04:00

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