Merge "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   git+https://gerrit.opnfv.org/gerrit/releng#egg=opnfv&subdirectory=modules
10   git+https://gerrit.opnfv.org/gerrit/barometer#egg=baro_tests
11   git+https://gerrit.opnfv.org/gerrit/snaps#egg=snaps
12 commands = nosetests --with-xunit \
13   --with-coverage \
14   --cover-tests \
15   --cover-package=functest \
16   --cover-xml \
17   --cover-html \
18   functest/tests/unit
19
20 [testenv:docs]
21 basepython = python2.7
22 commands = sphinx-build -W -b html api/ api/_build
23
24 [testenv:pep8]
25 basepython = python2.7
26 commands = flake8
27
28 [testenv:pylint]
29 basepython = python2.7
30 whitelist_externals = bash
31 modules =
32   functest.core
33   functest.opnfv_tests.sdn.odl
34   functest.tests.unit.core
35   functest.tests.unit.odl
36   functest.tests.unit.utils.test_decorators
37   functest.utils.decorators
38 commands =
39   bash -c "\
40     pylint -f parseable --disable=locally-disabled functest | \
41     tee pylint.out | sed -ne '/Raw metrics/,//p'"
42   pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
43
44 [testenv:py35]
45 dirs =
46   functest/tests/unit/core
47   functest/tests/unit/odl
48   functest/tests/unit/utils/test_decorators.py
49 commands = nosetests {[testenv:py35]dirs}