diff options
Diffstat (limited to 'ocata/tox.ini')
-rw-r--r-- | ocata/tox.ini | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ocata/tox.ini b/ocata/tox.ini index b882540d..79e0a153 100644 --- a/ocata/tox.ini +++ b/ocata/tox.ini @@ -13,7 +13,7 @@ # limitations under the License. [tox] -envlist = py27,pep8,cov +envlist = py27,pep8,cov,pylint skipsdist = true [tox:jenkins] @@ -27,8 +27,10 @@ max-complexity = 27 [testenv] setenv = PYTHONPATH = {toxinidir}/../share -deps = -r{toxinidir}/requirements.txt -commands = +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = coverage run --branch manage.py test ocata coverage report --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*" --fail-under=30 @@ -39,3 +41,8 @@ commands=flake8 [testenv:cov] commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*, *site-packages*" +[testenv:pylint] +whitelist_externals = bash +commands = + bash -c "\ + pylint -f parseable --reports=y ocata | tee pylint.out" |