blob: fb0f734645a363598012367fc5a1f9c3756c95d7 [file] [log] [blame]
Rich Bennett22ef0852017-07-19 18:05:55 -04001[tox]
2minversion = 1.6
Guillaume Lambert723363b2021-02-02 14:15:40 +01003envlist = docs,docs-linkcheck
Rich Bennett22ef0852017-07-19 18:05:55 -04004skipsdist = true
5
6[testenv:docs]
mrichommeeb7de502019-11-29 11:11:27 +01007basepython = python3
Aric Gardnerdd7413d2020-02-05 13:15:34 -05008deps = -r{toxinidir}/etc/requirements.txt
Rich Bennett22ef0852017-07-19 18:05:55 -04009commands =
Guillaume Lambertdbf91772021-04-23 11:14:34 +020010 sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Rich Bennett22ef0852017-07-19 18:05:55 -040011 echo "Generated docs available in {toxinidir}/docs/_build/html"
Rich Bennett169c1342018-11-02 06:47:43 -040012whitelist_externals =
13 echo
14 git
15 sh
Rich Bennett22ef0852017-07-19 18:05:55 -040016
Andrea Visnyei32d2daf2020-12-09 12:26:35 +010017[testenv:docs-templates]
18basepython = python3
19deps = -r{toxinidir}/etc/requirements.txt
20commands =
21 sphinx-build -b html -n -d {envtmpdir}/doctrees -c {toxinidir}/docs ./docs/guides/onap-developer/how-to-use-docs/templates {toxinidir}/docs/_build/html/templates
22 echo "Generated docs available in {toxinidir}/docs/_build/html/templates"
23whitelist_externals =
24 echo
25
Cédric Ollivier268209c2017-11-10 11:31:53 +010026[testenv:local]
mrichommeeb7de502019-11-29 11:11:27 +010027basepython = python3
Aric Gardnerdd7413d2020-02-05 13:15:34 -050028deps = -r{toxinidir}/etc/requirements.txt
Cédric Ollivier268209c2017-11-10 11:31:53 +010029commands =
Hagop Bozawglanian4cc3e882019-09-04 21:17:28 +000030 git submodule update --depth 100 --init
Guillaume Lambertdbf91772021-04-23 11:14:34 +020031 sphinx-build -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Cédric Ollivier268209c2017-11-10 11:31:53 +010032 echo "Generated docs available in {toxinidir}/docs/_build/html"
33whitelist_externals =
34 echo
35 git
36
Aric Gardnerdd7413d2020-02-05 13:15:34 -050037[testenv:docs-linkcheck]
mrichommeeb7de502019-11-29 11:11:27 +010038basepython = python3
Rich Bennett22ef0852017-07-19 18:05:55 -040039deps = -r{toxinidir}/etc/requirements.txt
Guillaume Lambertdbf91772021-04-23 11:14:34 +020040commands = sphinx-build -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
Rich Bennett9c3af502018-04-26 09:30:57 -040041
42[testenv:spellcheck]
mrichommeeb7de502019-11-29 11:11:27 +010043basepython = python3
Rich Bennett9c3af502018-04-26 09:30:57 -040044deps =
45 -r{toxinidir}/etc/requirements.txt
46 sphinxcontrib-spelling
Guillaume Lambert723363b2021-02-02 14:15:40 +010047commands =
Guillaume Lambert1abd85a2021-02-10 11:21:02 +010048 sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck
Guillaume Lambert9015be32021-02-17 11:46:10 +010049
50[testenv:autopep8]
51deps = autopep8
52commands =
53 autopep8 --max-line-length 120 --in-place docs/conf.py
54
55[testenv:pylint]
56deps = pylint
57commands =
58 pylint --max-line-length=120 --disable=missing-docstring --reports=y --score=y --output-format=colorized docs/conf.py