ba55cc2a67
Sphinx 4.0.0 added a new dependency [0] which is causing the job to fail at the moment. This patch fix the problem by adding UC to the docs jobs. [0] https://www.sphinx-doc.org/en/master/changes.html (LaTeX: add tex-gyre font dependency) Change-Id: I501659d48b1cf2d64cea8dc80ade7a068e37e904 Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
86 lines
2.3 KiB
INI
86 lines
2.3 KiB
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = py38,py36,pep8
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_TEST_PATH=./ovsdbapp/tests/unit
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
{toxinidir}/tools/coding-checks.sh --all '{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/xena}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
[testenv:pdf-docs]
|
|
envdir = {toxworkdir}/docs
|
|
deps = {[testenv:docs]deps}
|
|
whitelist_externals =
|
|
make
|
|
commands =
|
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
|
make -C doc/build/pdf
|
|
|
|
[testenv:releasenotes]
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:functional]
|
|
setenv = {[testenv]setenv}
|
|
OS_TEST_PATH=./ovsdbapp/tests/functional
|
|
OVS_SRCDIR={envdir}/src/ovs
|
|
OVN_SRCDIR={envdir}/src/ovn
|
|
OVS_BRANCH={env:OVS_BRANCH:}
|
|
OVN_BRANCH={env:OVN_BRANCH:}
|
|
passenv = KEEP_VENV
|
|
commands =
|
|
{toxinidir}/tools/setup-ovs.sh
|
|
{[testenv]commands}
|
|
|
|
[flake8]
|
|
# W504 line break after binary operator
|
|
ignore = W504
|
|
# H106: Don't put vim configuration in source files
|
|
# H203: Use assertIs(Not)None to check for None
|
|
# H204: Use assert(Not)Equal to check for equality
|
|
# H205: Use assert(Greater|Less)(Equal) for comparison
|
|
# H904: Delay string interpolations at logging calls
|
|
enable-extensions=H106,H203,H204,H205,H904
|
|
show-source = True
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
import-order-style = pep8
|
|
|
|
[testenv:lower-constraints]
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|