From f9e4bfed1f20a97589ac8c24829ba94fbdc4a469 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 10 Mar 2017 07:21:54 +0100 Subject: [PATCH] Add tox env for PDF building This is needed for change Ib2ca58105bfd1aad9508650e867a7e06892be719 to test and upload to docs-draft PDF files. Change-Id: I3b58c7535d9a16e87c4b71958f748df208bf01f0 --- tox.ini | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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