blob: de73d26dadce8c1e143d1fef348d5a0f58e2386d [file] [log] [blame]
Colleen Murphy44df1032017-05-30 16:21:48 +02001[tox]
2minversion = 2.0
Arundhati Surpuraeaa8092017-07-19 18:12:30 +05303envlist = py35,py27,pypy,pep8
Colleen Murphy44df1032017-05-30 16:21:48 +02004skipsdist = True
5
6[testenv]
7usedevelop = True
caoyuan201bcb42019-04-23 19:38:10 +08008install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
Colleen Murphy44df1032017-05-30 16:21:48 +02009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12deps = -r{toxinidir}/test-requirements.txt
13commands = python setup.py test --slowest --testr-args='{posargs}'
14
15[testenv:pep8]
huang.zhiping4dbc50b2018-06-09 09:27:17 +080016basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020017commands = flake8 {posargs}
18
19[testenv:venv]
huang.zhiping4dbc50b2018-06-09 09:27:17 +080020basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020021commands = {posargs}
22
23[testenv:cover]
huang.zhiping4dbc50b2018-06-09 09:27:17 +080024basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020025commands = python setup.py test --coverage --testr-args='{posargs}'
26
27[testenv:docs]
huang.zhiping4dbc50b2018-06-09 09:27:17 +080028basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020029commands = python setup.py build_sphinx
30
31[testenv:releasenotes]
huang.zhiping4dbc50b2018-06-09 09:27:17 +080032basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020033commands =
34 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
35
36[testenv:debug]
huang.zhiping4dbc50b2018-06-09 09:27:17 +080037basepython = python3
Colleen Murphy44df1032017-05-30 16:21:48 +020038commands = oslo_debug_helper {posargs}
39
40[flake8]
41# E123, E125 skipped as they are invalid PEP-8.
42
43show-source = True
44ignore = E123,E125
45builtins = _
46exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build