X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=f4b65da8375e0f00dcd977ecad1fab5cbfe513c6;hb=bff61ec24f529c51b1c41f0f25ef2d7d2dc60903;hp=3c6b19e7ba7abfae9dade2a7cf6f673e6b05a114;hpb=be955e2a9d931d842e62188ba6bf10664b548d21;p=integration%2Fpackaging.git diff --git a/tox.ini b/tox.ini index 3c6b19e..f4b65da 100644 --- a/tox.ini +++ b/tox.ini @@ -1,20 +1,37 @@ [tox] minversion = 1.6.0 -envlist = docs,coala +envlist = docs,coala,pkg_unittests skipsdist = true [testenv:coala] basepython = python3 deps = - coala - coala-bears - nodeenv + coala==0.11 + coala-bears==0.11 + pygments~=2.3.1 + # Requests 2.16 breaks dependencies + requests<2.16 + nodeenv==1.1.2 commands = nodeenv -p - npm install --global dockerfile_lint - npm install --global remark-cli + npm install --global dockerfile_lint remark-cli remark-lint write-good + python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger coala --non-interactive [testenv:docs] -deps = sphinx -commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html +deps = -rdocs/requirements.txt +commands = + sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html + echo "Generated docs available in {envtmpdir}/html" +whitelist_externals = echo + +[testenv:docs-linkcheck] +deps = -rdocs/requirements.txt +commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck + +[testenv:pkg_unittests] +# TODO: Support Python 3 +#basepython = python3 +deps = + -r{toxinidir}/packages/requirements.txt +commands = python -m unittest packages.test_lib