ansible-lint: install zuul

Install zuul so that ansible-lint has zuul integration and will not fail
some tests.

for this, move all requirements directly into tox.ini so that not every
job needs to install them.

Change-Id: I2b16600fad4c18f790e842b200ae21fd90051077
This commit is contained in:
Andreas Jaeger 2017-10-27 17:25:10 +02:00
parent 2c5186ddf6
commit 1475b15472
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,3 @@
hacking>=0.10,<0.11 hacking>=0.10,<0.11
bashate>=0.2 bashate>=0.2
-e git://git.openstack.org/openstack-infra/nodepool#egg=nodepool -e git://git.openstack.org/openstack-infra/nodepool#egg=nodepool
ansible<2.4.0
ansible-lint

View File

@ -16,7 +16,16 @@ commands =
[testenv:ansible-linters] [testenv:ansible-linters]
# TODO(jaegerandi): merge this in linters job once it works fine # TODO(jaegerandi): merge this in linters job once it works fine
# zuul needs python3
basepython = python3
deps =
# Zuul is required to supply the zuul ansible modules for ansible-lint
-egit+https://git.openstack.org/openstack-infra/zuul@feature/zuulv3#egg=zuul
ansible<2.4.0
ansible-lint
whitelist_externals = bash whitelist_externals = bash
setenv =
ANSIBLE_LIBRARY= {envdir}/src/zuul/zuul/ansible/library
passenv = passenv =
# NOTE(pabelanger): if you'd like to run tox -elinters locally, you'll need # NOTE(pabelanger): if you'd like to run tox -elinters locally, you'll need
# to export ANSIBLE_ROLES_PATH pointing to the currect repos. # to export ANSIBLE_ROLES_PATH pointing to the currect repos.