f7660bbaee
There is no more zookeeper package in fedora. If we want to support, we should move to centos steam. Drop ansible-lint, it is too complicated now. Depends-On: https://review.opendev.org/c/windmill/windmill/+/795901/ Change-Id: I8f774675ac5047eec235c168aa62a23ab6001929 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
36 lines
782 B
INI
36 lines
782 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 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"
|