X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=fcc6330ead0ce4ee7f525b6a212871f7d8f17e36;hb=refs%2Fchanges%2F69%2F86469%2F3;hp=baf2214ab689bd4149ae46a6d39c33a257974ce3;hpb=25bbfb14f191992f407d957d524ffb1cd0378655;p=vfc%2Fnfvo%2Fcatalog.git diff --git a/tox.ini b/tox.ini index baf2214a..fcc6330e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,25 @@ [tox] -envlist = py27 +envlist = py27,pep8,cov skipsdist = true [tox:jenkins] downloadcache = ~/cache/pip +[flake8] +ignore = E501,E722 +exclude = ./venv-tox,./.tox + [testenv] deps = -r{toxinidir}/requirements.txt -commands = coverage run --branch manage.py test lcm +commands = coverage run --branch manage.py test catalog + +[testenv:pep8] +deps = flake8 +commands = flake8 + +[testenv:py27] +commands = + {[testenv]commands} + +[testenv:cov] +commands = coverage xml --omit="*test*,*__init__.py,*site-packages*"