Enable parallel building

This theme provides a sphinx extension that is used with parallel
building, thus enable parallel building so that we can sure it works
everywhere.

The time benefit is not worth the work, this is for testing.

Change-Id: I4e8b7fdb5c4b8c6bd738211802567b532528ab9a
This commit is contained in:
Andreas Jaeger 2020-05-16 12:26:53 +02:00
parent 1dec2de03a
commit 6e74d8b418

20
tox.ini
View File

@ -26,52 +26,52 @@ commands = {posargs}
[testenv:docs] [testenv:docs]
commands = commands =
rm -rf doc/build/html doc/build/doctrees rm -rf doc/build/html doc/build/doctrees
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html sphinx-build -a -E -W -j auto -d doc/build/doctrees -b html doc/source doc/build/html
[testenv:docs-starlingxdocs] [testenv:docs-starlingxdocs]
envdir = {toxworkdir}/docs envdir = {toxworkdir}/docs
commands = commands =
rm -rf doc/build/html doc/build/doctrees rm -rf doc/build/html doc/build/doctrees
sphinx-build -a -E -W -d doc/build/doctrees -b html -D html_theme=starlingxdocs doc/source doc/build/html sphinx-build -a -E -W -j auto -d doc/build/doctrees -b html -D html_theme=starlingxdocs doc/source doc/build/html
[testenv:html] [testenv:html]
commands = commands =
rm -rf doc/build/html doc/build/doctrees api-ref/build rm -rf doc/build/html doc/build/doctrees api-ref/build
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html sphinx-build -a -E -W -j auto -d doc/build/doctrees -b html doc/source doc/build/html
sphinx-build -a -E -W -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html sphinx-build -a -E -W -j auto -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html
[testenv:releasenotes] [testenv:releasenotes]
commands = commands =
rm -rf releasenotes/build rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html sphinx-build -a -E -W -j auto -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:releasenotes-starlingxdocs] [testenv:releasenotes-starlingxdocs]
commands = commands =
rm -rf releasenotes/build rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html -D html_theme=starlingxdocs releasenotes/source releasenotes/build/html sphinx-build -a -E -W -j auto -d releasenotes/build/doctrees -b html -D html_theme=starlingxdocs releasenotes/source releasenotes/build/html
[testenv:api-ref] [testenv:api-ref]
commands = commands =
rm -rf api-ref/build rm -rf api-ref/build
sphinx-build -a -E -W -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html sphinx-build -a -E -W -j auto -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html
[testenv:api-ref-starlingxdocs] [testenv:api-ref-starlingxdocs]
commands = commands =
rm -rf api-ref/build rm -rf api-ref/build
sphinx-build -a -E -W -d api-ref/build/doctrees -b html -D html_theme=starlingxdocs api-ref/source api-ref/build/html sphinx-build -a -E -W -j auto -d api-ref/build/doctrees -b html -D html_theme=starlingxdocs api-ref/source api-ref/build/html
[testenv:pdf-docs] [testenv:pdf-docs]
envdir = {toxworkdir}/docs envdir = {toxworkdir}/docs
commands = commands =
rm -rf doc/build/pdf rm -rf doc/build/pdf
sphinx-build -a -E -W -b latex doc/source doc/build/pdf sphinx-build -a -E -W -j auto -b latex doc/source doc/build/pdf
make -C doc/build/pdf make -C doc/build/pdf
[testenv:pdf-docs-starlingxdocs] [testenv:pdf-docs-starlingxdocs]
envdir = {toxworkdir}/docs envdir = {toxworkdir}/docs
commands = commands =
rm -rf doc/build/pdf rm -rf doc/build/pdf
sphinx-build -a -E -W -b latex -D html_theme=starlingxdocs doc/source doc/build/pdf sphinx-build -a -E -W -j auto -b latex -D html_theme=starlingxdocs doc/source doc/build/pdf
make -C doc/build/pdf make -C doc/build/pdf
[testenv:bindep] [testenv:bindep]