blob: d989407586cdc1e8f5a7162112c9a33e1d99fa59 [file] [log] [blame]
Rich Bennett22ef0852017-07-19 18:05:55 -04001[tox]
2minversion = 1.6
Rich Bennett3beeced2017-09-18 10:01:25 -04003envlist = docs
Rich Bennett22ef0852017-07-19 18:05:55 -04004skipsdist = true
5
6[testenv:docs]
7deps = -r{toxinidir}/etc/requirements.txt
8commands =
Rich Bennetta61abf12018-11-12 09:07:41 -05009 sh {toxinidir}/shell/smsummary.sh {toxinidir}/docs/_static/smsummary.out
10 echo "Summary of submodule versions used in html build in {toxinidir}/docs/_static/smsummary.out"
11 sphinx-build -j 1 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Rich Bennett22ef0852017-07-19 18:05:55 -040012 echo "Generated docs available in {toxinidir}/docs/_build/html"
Rich Bennetta61abf12018-11-12 09:07:41 -050013whitelist_externals =
14 echo
15 git
16 sh
Rich Bennett22ef0852017-07-19 18:05:55 -040017
Cédric Ollivier268209c2017-11-10 11:31:53 +010018[testenv:local]
19deps = -r{toxinidir}/etc/requirements.txt
20commands =
21 git submodule update --depth 1 --init
22 sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
23 echo "Generated docs available in {toxinidir}/docs/_build/html"
24whitelist_externals =
25 echo
26 git
27
Rich Bennett9c3af502018-04-26 09:30:57 -040028[testenv:linkcheck]
Rich Bennett22ef0852017-07-19 18:05:55 -040029deps = -r{toxinidir}/etc/requirements.txt
Rich Bennett79a88c72017-09-29 17:15:30 -040030commands = sphinx-build -j 4 -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
Rich Bennett9c3af502018-04-26 09:30:57 -040031
32[testenv:spellcheck]
33deps =
34 -r{toxinidir}/etc/requirements.txt
35 sphinxcontrib-spelling
36commands =
37 sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -Dspelling_word_list_filename=validwords.txt -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck