X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=d316240af98b7e061c7373bb4826314cf2d566b7;hb=refs%2Ftags%2F1.0.0;hp=3480ef8718b5ba3621993c82df7c1b43270026db;hpb=81e3575a77366f30c2049f98c48a3087db0ea992;p=pti%2Fo2.git diff --git a/tox.ini b/tox.ini index 3480ef8..d316240 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,12 @@ # content of: tox.ini , put in same dir as setup.py [tox] -envlist=flake8,code +envlist= + flake8, + code, + docs, + docs-linkcheck, -minversion = 1.6 +minversion = 2.0 skipsdist = True [testenv] @@ -28,8 +32,34 @@ commands = [testenv:code] commands = - pytest tests + pytest tests/unit [testenv:nosetests] commands = - pytest tests + pytest tests/unit + + +[testenv:docs] +basepython = python3 +deps = + sphinx + sphinx-rtd-theme + sphinxcontrib-httpdomain + recommonmark + lfdocs-conf + +commands = + sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + + echo "Generated docs available in {toxinidir}/docs/_build/html" + +whitelist_externals = echo + +[testenv:docs-linkcheck] +basepython = python3 +deps = sphinx + sphinx-rtd-theme + sphinxcontrib-httpdomain + recommonmark + lfdocs-conf +commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck