blob: faa94df61a9e18fbd5ad5184c0a4f76fd7fb6828 [file] [log] [blame]
Marc Koderer3529ea72016-12-02 13:21:03 +01001[tox]
2minversion = 2.0
Kiran_totadbf706422017-03-07 15:24:10 +05303envlist = py35,py27,pypy,pep8
Marc Koderer3529ea72016-12-02 13:21:03 +01004skipsdist = True
5
6[testenv]
7usedevelop = True
pengyueshenga6cec8a2019-09-25 17:36:53 +08008install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Marc Koderer3529ea72016-12-02 13:21:03 +01009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12deps = -r{toxinidir}/test-requirements.txt
Jeremy Liuc2d9b662017-04-12 14:21:29 +080013commands = python setup.py testr --slowest --testr-args='{posargs}'
Marc Koderer3529ea72016-12-02 13:21:03 +010014
15[testenv:pep8]
Brianna Poulos27d768a2017-02-24 14:01:34 -050016commands =
17 flake8 {posargs}
Marc Koderer3529ea72016-12-02 13:21:03 +010018
19[testenv:venv]
20commands = {posargs}
21
22[testenv:debug]
23commands = oslo_debug_helper {posargs}
24
25[flake8]
26# E123, E125 skipped as they are invalid PEP-8.
27
28show-source = True
29ignore = E123,E125
30builtins = _
31exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build