blob: 8ef76a6bf7397e4a319d61c5b55c070aa2281e89 [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
Ha Manh Dong2d24cb72018-07-19 09:48:23 +070012commands = stestr run --slowest {posargs}
David Lyle64302f12016-04-29 15:46:34 -060013
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]
Doug Hellmannd7393962018-09-26 18:52:38 -040023basepython = python3
Ha Manh Dong2d24cb72018-07-19 09:48:23 +070024setenv =
25 {[testenv]setenv}
26 PYTHON=coverage run --source tempest_horizon --parallel-mode
27commands =
28 stestr run {posargs}
29 coverage combine
30 coverage html -d cover
31 coverage xml -o cover/coverage.xml
David Lyle64302f12016-04-29 15:46:34 -060032
33[testenv:docs]
qingszhao828a12c2018-06-12 13:53:38 +080034basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060035commands = python setup.py build_sphinx
36
37[testenv:debug]
qingszhao828a12c2018-06-12 13:53:38 +080038basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060039commands = oslo_debug_helper {posargs}
40
41[flake8]
42# E123, E125 skipped as they are invalid PEP-8.
43
44show-source = True
45ignore = E123,E125,E129,H404,H405
46builtins = _
47exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build