X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Ftox.ini;h=38686e9fc7ee57af184a2e81ca4d0192ff97822a;hb=refs%2Fheads%2Fcasablanca;hp=baf2214ab689bd4149ae46a6d39c33a257974ce3;hpb=ba64ce23c5572b0de5e5596a479d9090115009e4;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/tox.ini b/lcm/tox.ini index baf2214a..38686e9f 100644 --- a/lcm/tox.ini +++ b/lcm/tox.ini @@ -1,10 +1,26 @@ [tox] -envlist = py27 +envlist = py27,pep8,cov skipsdist = true [tox:jenkins] downloadcache = ~/cache/pip +[flake8] +ignore = E501,E722,W504 +exclude = ./venv-tox,./.tox +max-complexity = 27 + [testenv] deps = -r{toxinidir}/requirements.txt commands = coverage run --branch manage.py test lcm + +[testenv:pep8] +deps = flake8 +commands = flake8 + +[testenv:py27] +commands = + {[testenv]commands} + +[testenv:cov] +commands = coverage xml --omit="*test*,*__init__.py,*site-packages*"