docs/tox.ini
Stone d585d536f7 tox.ini modification
Adding --keep-going arg.
With -W option, keep going processing when getting warnings to the end of build, and sphinx-build exits with exit status 1.
This is useful to address multiple build errors in parallel instead of a series of build/fail cycles.

Signed-off-by: Stone <ronald.stone@windriver.com>
Change-Id: I0e73ec8e9d6e5f32a37ee0cbe4e113d024cc485b
2021-01-25 13:00:41 -05:00

38 lines
986 B
INI

[tox]
envlist = docs,linters
minversion = 2.3
skipsdist = True
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/test-requirements.txt
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W --keep-going -d doc/build/doctrees -b html doc/source doc/build/html {posargs}
[testenv:api-ref]
deps = {[testenv:docs]deps}
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals = rm
[testenv:linters]
whitelist_externals = bash
commands =
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
-o -type f -name '*.yaml' \
-print0 | xargs -0 yamllint"
[testenv:venv]
commands = {posargs}