Remove call to fetch_os_creds.sh
[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.feature
34   functest.core.testcase
35   functest.core.unit
36   functest.opnfv_tests.sdn.odl
37   functest.tests.unit.core.test_feature
38   functest.tests.unit.core.test_testcase
39   functest.tests.unit.core.test_unit
40   functest.tests.unit.odl
41   functest.tests.unit.utils.test_decorators
42   functest.utils.decorators
43 commands =
44   bash -c "\
45     pylint -f parseable --disable=locally-disabled functest | \
46     tee pylint.out | sed -ne '/Raw metrics/,//p'"
47   pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}
48
49 [testenv:py35]
50 dirs =
51   functest/tests/unit/core
52   functest/tests/unit/odl
53   functest/tests/unit/utils/test_decorators.py
54 deps =
55   -r{toxinidir}/requirements.py3.txt
56   -r{toxinidir}/test-requirements.txt
57 commands = nosetests {[testenv:py35]dirs}