ansible-role-nodepool/tox.ini
Paul Belanger 93157d2f9e Clean up references to openstack.org
With opendev.org now online, we can start using it over openstack.org.

Change-Id: Ia28113926efd70bee28aec7b88edcfdb365e6665
Depends-On: https://review.opendev.org/654017
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-20 14:02:59 -04:00

44 lines
836 B
INI

[tox]
minversion = 1.4.2
envlist = docs,linters
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:docs]
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:testinfra]
commands =
pytest --junit-xml junit.xml --sudo --verbose molecule/tests
[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,*lib/python*,*egg,build
[testenv:linters]
commands =
yamllint -s .
[testenv:molecule]
sitepackages = True
setenv =
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks
commands =
molecule test