Sync tox.ini
This is the latest version of tox.ini we are using for other windmill projects. Change-Id: Ica5dffc02ef69fc8881dd904447333c925b6e8ca Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
e06efde1ae
commit
5dd26cb7c1
20
tox.ini
20
tox.ini
|
@ -7,16 +7,14 @@ skipsdist = True
|
|||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:functional]
|
||||
commands =
|
||||
ansible-playbook -i tests/inventory tests/test.yaml
|
||||
passenv = HOME
|
||||
setenv =
|
||||
ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg
|
||||
PYTHONUNBUFFERED = 1
|
||||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
whitelist_externals =
|
||||
bash
|
||||
commands=
|
||||
bash -c "rm -rf doc/build"
|
||||
doc8 doc
|
||||
sphinx-build -b html doc/source doc/build/html
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
@ -37,8 +35,8 @@ commands =
|
|||
# PEP8 Lint Check
|
||||
flake8
|
||||
# Ansible Lint Check
|
||||
bash -c "find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
|
||||
ansible-lint"
|
||||
bash -c "find . -not -path '*/\.*' -type f -regex '.*.y[a]?ml' -print0 | \
|
||||
xargs -t -n1 -0 ansible-lint"
|
||||
# Ansible Syntax Check
|
||||
bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
|
||||
ansible-playbook --syntax-check -i tests/inventory \
|
||||
|
|
Loading…
Reference in New Issue