As it was announced [1] global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.
In documentation zuul job graphviz package ('dot' command) is needed.
Without that the job fails with:
dot command 'dot' cannot be run (needed for graphviz output),
check the graphviz_dot setting
[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html
(cherry picked from commit feac47186d)
(cherry picked from commit caf65ed260)
Conflicts:
tox.ini
Note(elod.illes): conflict is due to that lower-constraints tox env is
not present in Queens. Also patch needed to fix different errors as in
Queens the basepython is 2.7 which needs sphinx requirements to be
updated and does not need sphinx logging deprecation fix as in Rocky.
Change-Id: I5efddfc72e9dc0dd1b8b9e1e37708e1d30ef3c39
(cherry picked from commit 39f61e4392)
57 lines
1.8 KiB
INI
57 lines
1.8 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py35,py27,pep8,docs
|
|
|
|
[testenv]
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
distribute = False
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
flake8
|
|
ignore = E251
|
|
commands =
|
|
flake8 stevedore setup.py
|
|
# Run security linter
|
|
bandit -r stevedore -x tests -n5
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
ignore = E251
|
|
show-source = True
|
|
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
|
|
|
|
[testenv:releasenotes]
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:bindep]
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
# separately, outside of the requirements files, and develop mode disabled
|
|
# explicitly to avoid unnecessarily installing the checked-out repo too (this
|
|
# further relies on "tox.skipsdist = True" above).
|
|
deps = bindep
|
|
commands = bindep test
|
|
usedevelop = False
|