summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-11-10 11:31:53 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2017-11-13 10:47:34 +0100
commit268209ca8ec9d70f2e403da00663b50342902a71 (patch)
tree1424142935adf04bbf9f701559df04f3aaced516 /tox.ini
parentefd9cdf09bcdfadf956d383a2e224ae2ff5ef76a (diff)
Pull submodules when running tox
Otherwise it only works via jjobs but tox is also designed for users. It creates a new venv to ease testing it before integrating in jjobs. The documentation is updated as well to refer to the new venv. Issue-ID: DOC-159 Change-Id: Ida2ad14ebcf54ab776c2439dd83e74364432af46 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 10 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index b9b1dccfb..a3520183c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,6 +10,16 @@ commands =
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo
+[testenv:local]
+deps = -r{toxinidir}/etc/requirements.txt
+commands =
+ git submodule update --depth 1 --init
+ sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+ echo "Generated docs available in {toxinidir}/docs/_build/html"
+whitelist_externals =
+ echo
+ git
+
[testenv:docs-linkcheck]
deps = -r{toxinidir}/etc/requirements.txt
commands = sphinx-build -j 4 -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck