diff --git a/tox.ini b/tox.ini index c7406de..7131819 100644 --- a/tox.ini +++ b/tox.ini @@ -35,6 +35,20 @@ commands = rm -rf api-ref/build sphinx-build -a -E -W -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html + +[testenv:checkbuild] +# Only build PDF and push it to publish-docs folder so that OpenStack +# CI jobs will publish it. +whitelist_externals = + make + cp + mkdir +commands = + sphinx-build -a -E -W -d doc/build/doctrees -b latex doc/source doc/build/pdf + make -C doc/build/pdf + mkdir publish-docs + cp doc/build/pdf/os-doc-demo.pdf publish-docs + [testenv:bindep] # Do not install any requirements. We want this to be fast and work even if # system dependencies are missing, since it's used to tell you what system