d608941b30
Change-Id: I960b83a4281155e61835ab3e690513f9f0b450e5
43 lines
1009 B
INI
43 lines
1009 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py3,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
OS_TEST_PATH=vitrage/tests/unit
|
|
DISCOVER_DIRECTORY=vitrage/tests
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
oslo-config-generator --config-file=etc/vitrage/vitrage-config-generator.conf
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/vitrage/vitrage-config-generator.conf
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {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
|