summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2019-10-24 14:10:19 +0800
committercaoyuan <cao.yuan@99cloud.net>2019-10-24 14:50:28 +0800
commit127ded28c98f1989e89094fbde8a955c07d1915d (patch)
tree5eea589b93f4c27553ec6e4e9d2f5b399860bfe4 /tox.ini
parent63b75327acbb1ca0c7aa35d83ec5ebf8ac11af97 (diff)
downloadoslo-vmware-127ded28c98f1989e89094fbde8a955c07d1915d.tar.gz
tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name suggests, keeps the build running when it encounters non-fatal errors. This is exceptionally useful in avoiding a continuous edit-build loop when undertaking large doc reworks where multiple errors may be introduced. [1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045 Change-Id: I390f8f7add7530f1442f66816389202e3ed21f05
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 3926707..02f094f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -32,7 +32,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build doc/source/reference/api
- sphinx-build -W -b html doc/source doc/build/html
+ sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:cover]
basepython = python3
@@ -59,10 +59,13 @@ local-check-factory = oslo_vmware.hacking.checks.factory
[testenv:releasenotes]
basepython = python3
+whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
-commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
+commands =
+ rm -rf releasenotes/build
+ sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:bindep]
basepython = python3