Merge "Generate api doc when running tox"
[functest.git] / tox.ini
1 [tox]
2 envlist = docs,pep8,pylint,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 -b html docs/api/ docs/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 --persistent=n functest | sed -ne '/Raw metrics/,//p'"