summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2019-10-24 14:09:59 +0800
committercaoyuan <cao.yuan@99cloud.net>2019-10-24 14:54:15 +0800
commite6fe8b29ec2aa0277c4a140c07878f764ebbb08c (patch)
treec43d4eff2457ac4813d8dc70dbe5169c545cdd15 /tox.ini
parent0f7e144d013155f27f74b0eb91b7ae0f1530a86b (diff)
downloadoslo-policy-e6fe8b29ec2aa0277c4a140c07878f764ebbb08c.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: I9af0e8323b85d47983274b4d45b27f6c036ea5a8
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 6 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index b05205c..ed1c446 100644
--- a/tox.ini
+++ b/tox.ini
@@ -36,7 +36,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
- 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
@@ -54,7 +54,11 @@ import_exceptions = oslo_policy._i18n
[testenv:releasenotes]
basepython = python3
-commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
+whitelist_externals =
+ rm
+commands =
+ rm -rf releasenotes/build
+ sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]
basepython = python3