X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=b14695d75379610f87a65c27ac151794b64eaea1;hb=75d3298d84b269c6d0bbbdfe4b2311769d06dcaa;hp=ac347371182c6a0e49b943b64063dbdde9d02227;hpb=a3a997be6854955924bff935de3c7557c261ed71;p=integration%2Fpackaging.git diff --git a/tox.ini b/tox.ini index ac34737..b14695d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,25 +1,29 @@ [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 +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 -[testenv:pep8] -deps = flake8 -commands = flake8 - -[flake8] -show-source = True -show-pep8 = True -statistics = True -max-line-length = 100 -verbose = 1 -exclude = - docs/conf.py, - .git, - __pycache__, - .vagrant, - .tox +[testenv:pkg_unittests] +# TODO: Support Python 3 +#basepython = python3 +deps = + -r{toxinidir}/packages/requirements.txt +commands = python -m unittest packages.test_build