You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.5 KiB
59 lines
1.5 KiB
[tox]
|
|
minversion = 2.0
|
|
envlist = py35,py34,py27,pep8,cover
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_TEST_PATH=./networking_vpp/tests/unit
|
|
passenv = TRACE_FAILONLY
|
|
PYTHONPATH
|
|
install_command = pip install {opts} {packages}
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
coverage
|
|
commands = stestr run {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
PYTHON=coverage run --source networking_vpp --parallel-mode
|
|
OS_TEST_PATH=./networking_vpp/tests/unit
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
coverage report
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[hacking]
|
|
local-check-factory = neutron_lib.hacking.checks.factory
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
# TODO(ijw): N530 wants to come off of this list, compat.py should
|
|
# deal with it
|
|
# N531 deals with translation hints and is contraindicated by newer
|
|
# versions, but we sometimes want to work with older versions.
|
|
# Excluding 531 keeps them sane.
|
|
ignore = E123,E125,N530,N531
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.tmp
|