c4e75cc5b0
Hopefully it will help debug ansible 2.3 related issues.
47 lines
1.3 KiB
INI
47 lines
1.3 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py34,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata} {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
TESTS_DIR=./kayobe/tests/unit/
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = unit2 discover {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs} kayobe
|
|
# Check the *.rst files
|
|
# We use a thin wrapper around doc8 currently, which has support for sphinx
|
|
# directives. We install sphinx 1.5.x because versions prior to this
|
|
# (installed due to upper constraints) automatically import all
|
|
# sphinx.directive.* modules when any one of those modules is imported, and
|
|
# importing sphinx.directive.other breaks docutils parsing.
|
|
pip install -U sphinx<1.6
|
|
{toxinidir}/tools/sphinx8 README.rst CONTRIBUTING.rst doc/source --ignore D001
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:alint]
|
|
commands = ansible-lint ansible/*.yaml
|
|
|
|
[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
|