Add tox -elinters
This is the entry point for openstack gate jobs. Change-Id: Icbebabf5ea439ef0ef20cdbda41fb9adc82965d1 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
0637c7da4b
commit
f05eadea0d
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
hacking<0.11,>=0.10.0
|
hacking<0.11,>=0.10.0
|
||||||
|
|
||||||
|
ansible-lint
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
python-subunit>=0.0.18
|
python-subunit>=0.0.18
|
||||||
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
||||||
|
7
tox.ini
7
tox.ini
@ -18,6 +18,13 @@ commands = python setup.py test
|
|||||||
[testenv:common-constraints]
|
[testenv:common-constraints]
|
||||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
|
|
||||||
|
[testenv:linters]
|
||||||
|
whitelist_externals = bash
|
||||||
|
commands =
|
||||||
|
flake8
|
||||||
|
bash -c "cd ansible; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
|
||||||
|
ansible-lint"
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8 {posargs} --exclude=ansible
|
commands = flake8 {posargs} --exclude=ansible
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user