Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
| 3 | envlist = py34,py27,pypy,pep8 |
| 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = True |
| 8 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} |
| 9 | setenv = |
| 10 | VIRTUAL_ENV={envdir} |
| 11 | PYTHONWARNINGS=default::DeprecationWarning |
| 12 | deps = -r{toxinidir}/test-requirements.txt |
| 13 | commands = python setup.py test --slowest --testr-args='{posargs}' |
| 14 | |
| 15 | [testenv:pep8] |
Brianna Poulos | 27d768a | 2017-02-24 14:01:34 -0500 | [diff] [blame^] | 16 | commands = |
| 17 | flake8 {posargs} |
| 18 | check-uuid --package barbican_tempest_plugin |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 19 | |
| 20 | [testenv:venv] |
| 21 | commands = {posargs} |
| 22 | |
| 23 | [testenv:debug] |
| 24 | commands = oslo_debug_helper {posargs} |
| 25 | |
| 26 | [flake8] |
| 27 | # E123, E125 skipped as they are invalid PEP-8. |
| 28 | |
| 29 | show-source = True |
| 30 | ignore = E123,E125 |
| 31 | builtins = _ |
| 32 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |