Use Sphinx 1.7 parallel auto feature 77/13777/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 3 Dec 2018 13:59:12 +0000 (21:59 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 3 Dec 2018 14:55:12 +0000 (22:55 +0800)
Sphinx 1.7 introduced an auto feature to the `-j auto` parameter
to auto-detect number of available CPUs and set that.

Change-Id: I12d70e9586fea61479e9169725231096b5bec368
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index 909e8bf..a889b24 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -32,8 +32,8 @@ commands =
 [testenv:docs]
 deps = -rrequirements.txt
 commands =
-    sphinx-build -W -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+    sphinx-build -j auto -W -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
 deps = -rrequirements.txt
-commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+commands = sphinx-build -j auto -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck