blob: 07d2365be002afb14910c6b98a5fef2ef011ec9b [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
David Lyle64302f12016-04-29 15:46:34 -060033[testenv:debug]
qingszhao828a12c2018-06-12 13:53:38 +080034basepython = python3
David Lyle64302f12016-04-29 15:46:34 -060035commands = oslo_debug_helper {posargs}
36
37[flake8]
David Lyle64302f12016-04-29 15:46:34 -060038show-source = True
Andreas Jaegerecc60ca2020-03-28 12:13:24 +010039# W504 line break after binary operator
40# (W503 and W504 are incompatible and we need to choose one of them.
41# Existing codes follows W503, so we disable W504.)
42ignore = W504
David Lyle64302f12016-04-29 15:46:34 -060043builtins = _
44exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build