X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=987e473a4557a35850ffef615df73573e33269d4;hb=b8ab189cd80f1f27b482b797ffe286f9b68c5750;hp=ace2b542b5b14b69a2afc5f34a656e277a1e8543;hpb=47f805cca5ecddc2ba9969a58fb7c74a9939e357;p=integration%2Fpackaging.git diff --git a/tox.ini b/tox.ini index ace2b54..987e473 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,29 @@ [tox] minversion = 1.6.0 -envlist = pep8 +envlist = docs,coala,pkg_unittests skipsdist = true -[testenv:pep8] -deps = flake8 -commands = flake8 +[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 -[flake8] -show-source = True -show-pep8 = True -statistics = True -max-line-length = 100 -verbose = 1 -exclude = .git,__pycache__,.vagrant +[testenv:docs] +deps = sphinx +commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html + +[testenv:pkg_unittests] +# TODO: Support Python 3 +#basepython = python3 +deps = + -r{toxinidir}/packages/requirements.txt +commands = python -m unittest packages.test_lib