Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
| 3 | envlist = py35,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 | OS_STDOUT_CAPTURE=1 |
| 13 | OS_STDERR_CAPTURE=1 |
| 14 | OS_TEST_TIMEOUT=60 |
| 15 | deps = -r{toxinidir}/requirements.txt |
| 16 | -r{toxinidir}/test-requirements.txt |
Raissa Sarmento | 80f5fbf | 2017-10-16 14:38:36 +0100 | [diff] [blame] | 17 | # commands = python setup.py test --slowest --testr-args='{posargs}' |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 18 | |
| 19 | [testenv:pep8] |
| 20 | commands = flake8 {posargs} |
| 21 | |
| 22 | [testenv:venv] |
| 23 | commands = {posargs} |
| 24 | |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 25 | [testenv:docs] |
| 26 | commands = python setup.py build_sphinx |
| 27 | |
| 28 | [testenv:releasenotes] |
| 29 | commands = |
| 30 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 31 | |
| 32 | [testenv:debug] |
| 33 | commands = oslo_debug_helper {posargs} |
| 34 | |
| 35 | [flake8] |
| 36 | # E123, E125 skipped as they are invalid PEP-8. |
| 37 | |
| 38 | show-source = True |
| 39 | ignore = E123,E125 |
| 40 | builtins = _ |
| 41 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |