Avoid a full install in tox environments that do not need it
Usage of usedevelop=True results in all requirements.txt dependencies always installed (without constraints) even when requirements.txt is not explicitly added. Override usedevelop for these environments. Change-Id: I71ec737454fa42775168a0df948ba9bbb1379dcc
This commit is contained in:
parent
2d7dee5cd4
commit
75f528fded
5
tox.ini
5
tox.ini
@ -18,6 +18,7 @@ commands = stestr run --slowest {posargs}
|
||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
|
||||
[testenv:pep8]
|
||||
usedevelop = False
|
||||
deps =
|
||||
Pygments>=2.2.0 # BSD license
|
||||
doc8>=0.6.0 # Apache-2.0
|
||||
@ -35,12 +36,14 @@ commands = {posargs}
|
||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||
|
||||
[testenv:docs]
|
||||
usedevelop = False
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||
|
||||
[testenv:pdf-docs]
|
||||
usedevelop = False
|
||||
whitelist_externals = make
|
||||
deps = {[testenv:docs]deps}
|
||||
commands =
|
||||
@ -51,6 +54,7 @@ commands =
|
||||
commands = oslo_debug_helper -t bifrost/tests {posargs}
|
||||
|
||||
[testenv:releasenotes]
|
||||
usedevelop = False
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
@ -78,6 +82,7 @@ deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
|
||||
[testenv:linters]
|
||||
usedevelop = False
|
||||
whitelist_externals = bash
|
||||
deps =
|
||||
ansible>=2.10.0,<2.11
|
||||
|
Loading…
x
Reference in New Issue
Block a user