blob: 1f1ce01a3dca550844385da00998c9011d9c2ea5 [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
8install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
9setenv =
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