blob: 13d72c66c999018eb246ec8368bc0169f182c6d8 [file] [log] [blame]
David Lyle64302f12016-04-29 15:46:34 -06001[tox]
2minversion = 1.6
3envlist = py34,py27,pypy,pep8
4skipsdist = True
5
6[testenv]
7usedevelop = True
8install_command = pip install -U {opts} {packages}
9setenv =
10 VIRTUAL_ENV={envdir}
11deps = -r{toxinidir}/test-requirements.txt
12commands = python setup.py test --slowest --testr-args='{posargs}'
13
14[testenv:pep8]
qingszhao828a12c2018-06-12 13:53:38 +080015basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060016commands = flake8
17
18[testenv:venv]
qingszhao828a12c2018-06-12 13:53:38 +080019basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060020commands = {posargs}
21
22[testenv:cover]
qingszhao828a12c2018-06-12 13:53:38 +080023basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060024commands = python setup.py test --coverage --testr-args='{posargs}'
25
26[testenv:docs]
qingszhao828a12c2018-06-12 13:53:38 +080027basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060028commands = python setup.py build_sphinx
29
30[testenv:debug]
qingszhao828a12c2018-06-12 13:53:38 +080031basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060032commands = oslo_debug_helper {posargs}
33
34[flake8]
35# E123, E125 skipped as they are invalid PEP-8.
36
37show-source = True
38ignore = E123,E125,E129,H404,H405
39builtins = _
40exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build