blob: 6505b851295b7949f218578fee5a5e4b8fedf7d3 [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
Cédric Ollivieree3abf12021-09-28 13:48:21 +02008deps =
thmsdtae619be2021-12-20 13:32:38 +01009 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020010 -c{toxinidir}/etc/upper-constraints.os.txt
11 -c{toxinidir}/etc/upper-constraints.onap.txt
Rich Bennett22ef0852017-07-19 18:05:55 -040012commands =
Guillaume Lambertdbf91772021-04-23 11:14:34 +020013 sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Rich Bennett22ef0852017-07-19 18:05:55 -040014 echo "Generated docs available in {toxinidir}/docs/_build/html"
Rich Bennett169c1342018-11-02 06:47:43 -040015whitelist_externals =
16 echo
17 git
18 sh
Rich Bennett22ef0852017-07-19 18:05:55 -040019
Andrea Visnyei32d2daf2020-12-09 12:26:35 +010020[testenv:docs-templates]
21basepython = python3
Cédric Ollivieree3abf12021-09-28 13:48:21 +020022deps =
thmsdtae619be2021-12-20 13:32:38 +010023 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020024 -c{toxinidir}/etc/upper-constraints.os.txt
25 -c{toxinidir}/etc/upper-constraints.onap.txt
Andrea Visnyei32d2daf2020-12-09 12:26:35 +010026commands =
27 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
28 echo "Generated docs available in {toxinidir}/docs/_build/html/templates"
29whitelist_externals =
30 echo
31
Cédric Ollivier268209c2017-11-10 11:31:53 +010032[testenv:local]
mrichommeeb7de502019-11-29 11:11:27 +010033basepython = python3
Cédric Ollivieree3abf12021-09-28 13:48:21 +020034deps =
thmsdtae619be2021-12-20 13:32:38 +010035 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020036 -c{toxinidir}/etc/upper-constraints.os.txt
37 -c{toxinidir}/etc/upper-constraints.onap.txt
Cédric Ollivier268209c2017-11-10 11:31:53 +010038commands =
Hagop Bozawglanian4cc3e882019-09-04 21:17:28 +000039 git submodule update --depth 100 --init
Guillaume Lambertdbf91772021-04-23 11:14:34 +020040 sphinx-build -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
Cédric Ollivier268209c2017-11-10 11:31:53 +010041 echo "Generated docs available in {toxinidir}/docs/_build/html"
42whitelist_externals =
43 echo
44 git
45
Aric Gardnerdd7413d2020-02-05 13:15:34 -050046[testenv:docs-linkcheck]
mrichommeeb7de502019-11-29 11:11:27 +010047basepython = python3
Cédric Ollivieree3abf12021-09-28 13:48:21 +020048deps =
thmsdtae619be2021-12-20 13:32:38 +010049 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020050 -c{toxinidir}/etc/upper-constraints.os.txt
51 -c{toxinidir}/etc/upper-constraints.onap.txt
Cédric Ollivier2d2241a2022-07-05 14:49:25 +020052commands = sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
Rich Bennett9c3af502018-04-26 09:30:57 -040053
54[testenv:spellcheck]
mrichommeeb7de502019-11-29 11:11:27 +010055basepython = python3
Rich Bennett9c3af502018-04-26 09:30:57 -040056deps =
thmsdtae619be2021-12-20 13:32:38 +010057 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020058 -c{toxinidir}/etc/upper-constraints.os.txt
59 -c{toxinidir}/etc/upper-constraints.onap.txt
Guillaume Lambert723363b2021-02-02 14:15:40 +010060commands =
Guillaume Lambert1abd85a2021-02-10 11:21:02 +010061 sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck
Guillaume Lambert9015be32021-02-17 11:46:10 +010062
63[testenv:autopep8]
Cédric Ollivieree3abf12021-09-28 13:48:21 +020064deps =
thmsdtae619be2021-12-20 13:32:38 +010065 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020066 -c{toxinidir}/etc/upper-constraints.os.txt
67 -c{toxinidir}/etc/upper-constraints.onap.txt
Guillaume Lambert9015be32021-02-17 11:46:10 +010068commands =
69 autopep8 --max-line-length 120 --in-place docs/conf.py
70
71[testenv:pylint]
Cédric Ollivieree3abf12021-09-28 13:48:21 +020072deps =
thmsdtae619be2021-12-20 13:32:38 +010073 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020074 -c{toxinidir}/etc/upper-constraints.os.txt
75 -c{toxinidir}/etc/upper-constraints.onap.txt
Guillaume Lambert9015be32021-02-17 11:46:10 +010076commands =
77 pylint --max-line-length=120 --disable=missing-docstring --reports=y --score=y --output-format=colorized docs/conf.py