|
|
@@ -1,9 +1,10 @@ |
|
|
|
[tox] |
|
|
|
minversion = 2.0 |
|
|
|
envlist = py3,py27,pep8 |
|
|
|
envlist = py3,pep8 |
|
|
|
skipsdist = True |
|
|
|
|
|
|
|
[testenv] |
|
|
|
basepython = python3 |
|
|
|
usedevelop = True |
|
|
|
install_command = pip install {opts} {packages} |
|
|
|
setenv = |
|
|
@@ -16,7 +17,6 @@ commands = stestr run {posargs} |
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY |
|
|
|
|
|
|
|
[testenv:pep8] |
|
|
|
basepython = python3 |
|
|
|
whitelist_externals = bash |
|
|
|
commands = |
|
|
|
bash tools/flake8wrap.sh {posargs} |
|
|
@@ -25,11 +25,9 @@ commands = |
|
|
|
{toxinidir}/tools/run_bashate.sh {toxinidir}/devstack |
|
|
|
|
|
|
|
[testenv:venv] |
|
|
|
basepython = python3 |
|
|
|
commands = {posargs} |
|
|
|
|
|
|
|
[testenv:cover] |
|
|
|
basepython = python3 |
|
|
|
setenv = VIRTUAL_ENV={envdir} |
|
|
|
LANGUAGE=en_US |
|
|
|
PYTHON=coverage run --source networking_baremetal --parallel-mode |
|
|
@@ -42,14 +40,12 @@ commands = |
|
|
|
coverage report --omit='*test*' |
|
|
|
|
|
|
|
[testenv:docs] |
|
|
|
basepython = python3 |
|
|
|
setenv = PYTHONHASHSEED=0 |
|
|
|
sitepackages = False |
|
|
|
commands = |
|
|
|
python setup.py build_sphinx |
|
|
|
|
|
|
|
[testenv:pdf-docs] |
|
|
|
basepython = python3 |
|
|
|
whitelist_externals = make |
|
|
|
setenv = PYTHONHASHSEED=0 |
|
|
|
sitepackages = False |
|
|
@@ -58,17 +54,14 @@ commands = |
|
|
|
make -C doc/build/pdf |
|
|
|
|
|
|
|
[testenv:releasenotes] |
|
|
|
basepython = python3 |
|
|
|
commands = |
|
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
|
|
|
|
|
|
|
[testenv:genconfig] |
|
|
|
basepython = python3 |
|
|
|
commands = |
|
|
|
oslo-config-generator --config-file=tools/config/networking-baremetal-config-generator.conf |
|
|
|
|
|
|
|
[testenv:debug] |
|
|
|
basepython = python3 |
|
|
|
commands = oslo_debug_helper -t networking_baremetal/tests/unit {posargs} |
|
|
|
|
|
|
|
[flake8] |
|
|
@@ -80,7 +73,6 @@ builtins = _ |
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |
|
|
|
|
|
|
|
[testenv:lower-constraints] |
|
|
|
basepython = python3 |
|
|
|
deps = |
|
|
|
-c{toxinidir}/lower-constraints.txt |
|
|
|
-r{toxinidir}/test-requirements.txt |