Analyse code when running tox
[functest-xtesting.git] / tox.ini
1 [tox]
2 envlist = pep8,pylint,py27
3
4 [testenv]
5 deps =
6   -r{toxinidir}/requirements.txt
7   -r{toxinidir}/test-requirements.txt
8 commands = nosetests --with-xunit \
9   --with-coverage \
10   --cover-tests \
11   --cover-package=functest \
12   --cover-xml \
13   --cover-html \
14   functest/tests/unit
15
16 [testenv:pep8]
17 basepython = python2.7
18 deps =
19   {[testenv]deps}
20 commands = flake8
21
22 [testenv:pylint]
23 basepython=python2.7
24 deps=
25   {[testenv]deps}
26 whitelist_externals = bash
27 commands=bash -c \
28   "pylint --persistent=n functest | sed -ne '/Raw metrics/,//p'"