Refactor core VNF class
[functest.git] / tox.ini
1 [tox]
2 envlist = docs,pep8,pylint,py35,py27
3
4 [testenv]
5 usedevelop = True
6 deps =
7   -r{toxinidir}/requirements.txt
8   -r{toxinidir}/test-requirements.txt
9 commands = nosetests --with-xunit \
10   --with-coverage \
11   --cover-tests \
12   --cover-package=functest \
13   --cover-xml \
14   --cover-html \
15   functest/tests/unit
16
17 [testenv:docs]
18 basepython = python2.7
19 commands = sphinx-build -W -b html api/ api/_build
20
21 [testenv:pep8]
22 basepython = python2.7
23 deps =
24   {[testenv]deps}
25 commands = flake8
26
27 [testenv:pylint]
28 basepython = python2.7
29 deps =
30   {[testenv]deps}
31 whitelist_externals = bash
32 modules =
33   functest.core
34   functest.opnfv_tests.sdn.odl
35   functest.tests.unit.core
36   functest.tests.unit.odl
37   functest.tests.unit.utils.test_decorators
38   functest.utils.decorators
39 commands =
40   bash -c "\
41     pylint -f parseable --disable=locally-disabled functest | \
42     tee pylint.out | sed -ne '/Raw metrics/,//p'"
43   pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
44
45 [testenv:py35]
46 dirs =
47   functest/tests/unit/core
48   functest/tests/unit/odl
49   functest/tests/unit/utils/test_decorators.py
50 deps =
51   -r{toxinidir}/requirements.py3.txt
52   -r{toxinidir}/test-requirements.txt
53 commands = nosetests {[testenv:py35]dirs}