Files
a51f8b347ffed85d48b1448f9718b137330a7324
openstack-ansible-haproxy_s... /tox.ini

97 lines
2.2 KiB
INI
Raw Normal View History

2016年08月21日 16:58:31 +01:00
[tox]
2016年08月21日 16:58:31 +01:00
skipsdist = True
envlist = docs,linters,functional
2016年08月21日 16:58:31 +01:00
[testenv]
2016年08月21日 16:58:31 +01:00
install_command =
pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
2016年08月21日 16:58:31 +01:00
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
passenv =
2016年08月21日 16:58:31 +01:00
HOME
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
TESTING_HOME
USER
2016年08月21日 16:58:31 +01:00
bash
setenv =
WORKING_DIR={toxinidir}
2016年08月21日 16:58:31 +01:00
[testenv:docs]
2016年08月21日 16:58:31 +01:00
bash -c "rm -rf doc/build"
doc8 doc
2016年08月21日 16:58:31 +01:00
deps = {[testenv:docs]deps}
commands =
2016年08月21日 16:58:31 +01:00
[doc8]
# Settings for doc8:
extensions = .rst
[testenv:releasenotes]
2016年08月21日 16:58:31 +01:00
commands =
2016年08月21日 16:58:31 +01:00
# environment used by the -infra templated docs job
[testenv:venv]
commands =
{posargs}
[testenv:pep8]
commands =
2016年08月21日 16:58:31 +01:00
[flake8]
# Ignores the following rules due to how ansible modules work in general
# F403 'from ansible.module_utils.basic import *' used;
# unable to detect undefined names
2016年08月21日 16:58:31 +01:00
[testenv:bashate]
commands =
2016年08月21日 16:58:31 +01:00
[testenv:ansible-syntax]
commands =
2016年08月21日 16:58:31 +01:00
[testenv:ansible-lint]
commands =
2016年08月21日 16:58:31 +01:00
[testenv:functional]
commands =
2016年08月21日 16:58:31 +01:00
[testenv:linters]
commands =
2016年08月21日 16:58:31 +01:00
{[testenv:pep8]commands}
{[testenv:bashate]commands}
{[testenv:ansible-lint]commands}
{[testenv:ansible-syntax]commands}