|
|
|
|
@@ -13,7 +13,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|
|
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
|
|
|
usedevelop = True
|
|
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
|
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/xena}
|
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
|
# Delete bytecodes from normal directories before running tests.
|
|
|
|
|
@@ -52,7 +52,7 @@ commands =
|
|
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
|
deps =
|
|
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/xena}
|
|
|
|
|
-r{toxinidir}/doc/requirements.txt
|
|
|
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
|
|
|
|
|
|
@@ -67,7 +67,7 @@ commands =
|
|
|
|
|
|
|
|
|
|
[testenv:releasenotes]
|
|
|
|
|
deps =
|
|
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/xena}
|
|
|
|
|
-r{toxinidir}/doc/requirements.txt
|
|
|
|
|
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
|
|
|
|
|
@@ -81,8 +81,11 @@ enable-extensions=H904
|
|
|
|
|
|
|
|
|
|
[testenv:bandit]
|
|
|
|
|
# B303: blacklist calls: md5, sha1
|
|
|
|
|
# B105: The software contains a hard-coded password, which it uses for its own
|
|
|
|
|
# inbound authentication or for outbound communication to external
|
|
|
|
|
# components.
|
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
|
commands = bandit -r neutronclient -x tests -n5 -s B303
|
|
|
|
|
commands = bandit -r neutronclient -x tests -n5 -s B303,B105
|
|
|
|
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
|
|
|
deps =
|
|
|
|
|
|