[tox] Update doc testenv to account for documentation restructuring
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 08 Jul 2015 09:37:06 +0200
changeset 10518 d276e4b332ba
parent 10517 fa9a0c80556d
child 10522 1660a0fa4f43
[tox] Update doc testenv to account for documentation restructuring * Build doc from `doc` directory. * Use `sphinx-build` directly instead of `make` as this now works and allows to build within .tox temporary environment (instead of doc/_build), preferable for a "test" action. Related to #5447161.
tox.ini
--- a/tox.ini	Thu Jul 02 11:46:57 2015 +0200
+++ b/tox.ini	Wed Jul 08 09:37:06 2015 +0200
@@ -47,6 +47,9 @@
 [testenv:wsgi]
 
 [testenv:doc]
-changedir = doc/book/en
-deps = sphinx
-commands = make html
+changedir = doc
+whitelist_externals =
+  sphinx-build
+deps =
+  sphinx
+commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html