Paul Belanger a4a10fc062 Define zookeeper hosts for zuul configuration
Zuul 3.7.0 introduced a breaking configuration change, we now need to
define zookeeper hosts by default.

Disable 306 for ansible-lint until we can decided best fix.

Change-Id: Idd54f1ea75cccbb0dab7978ca4d7778fbc05bf42
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-22 20:14:19 -04:00

39 lines
923 B
INI

[tox]
minversion = 1.4.2
envlist = docs,linters
skipsdist = True
[testenv]
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[testenv:linters]
setenv =
ANSIBLE_ROLES_PATH = ..
whitelist_externals = bash
commands =
# PEP8 Lint Check
flake8
# Ansible Lint Check
bash -c "find . -not -path '*/\.*' -type f -regex '.*.y[a]?ml' -print0 | \
xargs -t -n1 -0 ansible-lint -x 306"
# Ansible Syntax Check
bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
ansible-playbook --syntax-check -i tests/inventory \
-e rolename=$(basename $(pwd)) > /dev/null"