Merge "Switch shebangs to /usr/bin/env python"
[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 commands = bash -c "\
33   pylint -f parseable --disable=locally-disabled functest | \
34   tee pylint.out | sed -ne '/Raw metrics/,//p'"
35
36 [testenv:py35]
37 dirs =
38   functest/tests/unit/core
39   functest/tests/unit/odl
40   functest/tests/unit/utils/test_decorators.py
41 deps =
42   -r{toxinidir}/requirements.py3.txt
43   -r{toxinidir}/test-requirements.txt
44 commands = nosetests {[testenv:py35]dirs}