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