Merge "Avoid a full install in tox environments that do not need it"
This commit is contained in:
commit
923bded572
17
tox.ini
17
tox.ini
|
@ -21,7 +21,6 @@ commands = stestr run {posargs}
|
||||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||||
|
|
||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
usedevelop = True
|
|
||||||
# Define virtualenv directory, port to use for functional testing, and number
|
# Define virtualenv directory, port to use for functional testing, and number
|
||||||
# of seconds to wait for the agent to come alive during functional testing.
|
# of seconds to wait for the agent to come alive during functional testing.
|
||||||
setenv =
|
setenv =
|
||||||
|
@ -33,6 +32,7 @@ setenv =
|
||||||
commands = stestr run {posargs}
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
usedevelop = False
|
||||||
deps=
|
deps=
|
||||||
hacking>=3.1.0,<4.0.0 # Apache-2.0
|
hacking>=3.1.0,<4.0.0 # Apache-2.0
|
||||||
bashate>=0.5.1 # Apache-2.0
|
bashate>=0.5.1 # Apache-2.0
|
||||||
|
@ -68,8 +68,10 @@ commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs}
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
setenv = PYTHONHASHSEED=0
|
setenv = PYTHONHASHSEED=0
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
|
# NOTE(dtantsur): documentation building process requires importing IPA
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -b html doc/source doc/build/html
|
sphinx-build -b html doc/source doc/build/html
|
||||||
|
@ -78,14 +80,16 @@ commands =
|
||||||
whitelist_externals = make
|
whitelist_externals = make
|
||||||
setenv = PYTHONHASHSEED=0
|
setenv = PYTHONHASHSEED=0
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
deps =
|
deps = {[testenv:docs]deps}
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
||||||
-r{toxinidir}/doc/requirements.txt
|
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -b latex doc/source doc/build/pdf
|
sphinx-build -b latex doc/source doc/build/pdf
|
||||||
make -C doc/build/pdf
|
make -C doc/build/pdf
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
|
usedevelop = False
|
||||||
|
deps =
|
||||||
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
@ -128,7 +132,10 @@ deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
usedevelop = False
|
||||||
|
deps =
|
||||||
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = bandit -r ironic_python_agent -x tests -n5 -ll -c tools/bandit.yml
|
commands = bandit -r ironic_python_agent -x tests -n5 -ll -c tools/bandit.yml
|
||||||
|
|
||||||
[testenv:examples]
|
[testenv:examples]
|
||||||
|
|
Loading…
Reference in New Issue