X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=ba1242f4b2ffa7a85ab6e7655323e032b9220fac;hb=35cbec33f5576e0444904596ccf0d25b3091590e;hp=723d1128a07f6bb1862657ff2b044ee1281b08cc;hpb=47753493b4d04a9061656b4280fba17637c1486d;p=integration%2Fpackaging.git diff --git a/tox.ini b/tox.ini index 723d112..ba1242f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,29 +1,36 @@ [tox] minversion = 1.6.0 -envlist = docs,pep8 +envlist = docs,coala,pkg_unittests skipsdist = true +[testenv:coala] +basepython = python3 +deps = + coala==0.11 + coala-bears==0.11 + # Requests 2.16 breaks dependencies + requests<2.16 + nodeenv==1.1.2 +commands = + nodeenv -p + 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:pep8] -deps = flake8 -commands = flake8 +[testenv:docs-linkcheck] +deps = -rdocs/requirements.txt +commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck -[flake8] -show-source = True -show-pep8 = True -statistics = True -max-line-length = 100 -verbose = 1 -exclude = - docs, - .git, - __pycache__, - .vagrant, - .tox, - .tmp, - modules, - .librarian, - provisioning +[testenv:pkg_unittests] +# TODO: Support Python 3 +#basepython = python3 +deps = + -r{toxinidir}/packages/requirements.txt +commands = python -m unittest packages.test_lib