blob: 1fdc85bea20de343ab1860bb84863a995492772e [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]
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +02007basepython = python3.8
Cédric Ollivieree3abf12021-09-28 13:48:21 +02008deps =
thmsdtae619be2021-12-20 13:32:38 +01009 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020010 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020011 -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]
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020021basepython = python3.8
Cédric Ollivieree3abf12021-09-28 13:48:21 +020022deps =
thmsdtae619be2021-12-20 13:32:38 +010023 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020024 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020025 -c{toxinidir}/etc/upper-constraints.onap.txt
Andrea Visnyei32d2daf2020-12-09 12:26:35 +010026commands =
Cédric Ollivier8c7dee92023-02-18 17:59:24 +010027 sphinx-build -W -b html -n -d {envtmpdir}/doctrees -c {toxinidir}/docs ./docs/guides/onap-developer/how-to-use-docs/templates {toxinidir}/docs/_build/html/templates
Andrea Visnyei32d2daf2020-12-09 12:26:35 +010028 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]
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020033basepython = python3.8
Cédric Ollivieree3abf12021-09-28 13:48:21 +020034deps =
thmsdtae619be2021-12-20 13:32:38 +010035 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020036 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020037 -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]
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020047basepython = python3.8
Cédric Ollivieree3abf12021-09-28 13:48:21 +020048deps =
thmsdtae619be2021-12-20 13:32:38 +010049 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020050 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020051 -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]
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020055basepython = python3.8
Rich Bennett9c3af502018-04-26 09:30:57 -040056deps =
thmsdtae619be2021-12-20 13:32:38 +010057 -r{toxinidir}/etc/requirements-docs.txt
Cédric Ollivierb0ba1fe2022-08-31 20:12:06 +020058 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020059 -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 Ollivierb0ba1fe2022-08-31 20:12:06 +020066 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020067 -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 Ollivierb0ba1fe2022-08-31 20:12:06 +020074 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivieree3abf12021-09-28 13:48:21 +020075 -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