X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=d316240af98b7e061c7373bb4826314cf2d566b7;hb=3dafe8deba4b740cd4f8b7e97994212ecd8bf565;hp=39016e98512c679745f074994d722c341a824ff2;hpb=f10107e78b324fc607fe06486764588f38fc220d;p=pti%2Fo2.git diff --git a/tox.ini b/tox.ini index 39016e9..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] @@ -33,3 +37,29 @@ commands = [testenv:nosetests] commands = 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