From a555778013d7f4520da31f2f544e94434dd4e0f8 Mon Sep 17 00:00:00 2001 From: Julia Medina Date: Thu, 14 May 2015 20:40:12 -0300 Subject: [PATCH 1/3] Build docs in a temporary folder to avoid caching --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index a5b9ad9e3..f6c153ae3 100644 --- a/tox.ini +++ b/tox.ini @@ -62,5 +62,5 @@ changedir = docs deps = Sphinx commands = - sphinx-build -W -b html . build/html - sphinx-build -W -b linkcheck . build/linkcheck + sphinx-build -W -b html . {envtmpdir}/html + sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck From ec5494292525d57f3077c122eed6a4a4cf4a0c29 Mon Sep 17 00:00:00 2001 From: Julia Medina Date: Thu, 14 May 2015 20:41:55 -0300 Subject: [PATCH 2/3] Create separate testenvs to build docs and check links --- tox.ini | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f6c153ae3..5c8c8c78d 100644 --- a/tox.ini +++ b/tox.ini @@ -57,10 +57,19 @@ deps = basepython = python3.4 deps = {[testenv:py33]deps} -[testenv:docs] +[docs] changedir = docs deps = Sphinx + +[testenv:docs] +changedir = {[docs]changedir} +deps = {[docs]deps} commands = sphinx-build -W -b html . {envtmpdir}/html + +[testenv:docs-links] +changedir = {[docs]changedir} +deps = {[docs]deps} +commands = sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck From cbebcbddb147cdf46dd10f8221abc31493a0c9ca Mon Sep 17 00:00:00 2001 From: Julia Medina Date: Thu, 14 May 2015 20:42:34 -0300 Subject: [PATCH 3/3] Add docs toxenv to .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index b30d13bed..09da120bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ env: - TOXENV=py27 - TOXENV=precise - TOXENV=py33 +- TOXENV=docs install: - "./.travis-workarounds.sh" - pip install -U tox