DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 1 | [tox] |
DavidPurcell | 029d8c3 | 2017-01-06 15:27:41 -0500 | [diff] [blame^] | 2 | minversion = 1.6 |
| 3 | envlist = py35,py27,pypy,pep8 |
DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 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 |
DavidPurcell | 029d8c3 | 2017-01-06 15:27:41 -0500 | [diff] [blame^] | 12 | passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY |
| 13 | whitelist_externals = * |
| 14 | deps = -r{toxinidir}/requirements.txt |
| 15 | -r{toxinidir}/test-requirements.txt |
| 16 | commands = |
| 17 | find . -type f -name "*.pyc" -delete |
| 18 | ostestr {posargs} |
DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 19 | |
| 20 | [testenv:pep8] |
| 21 | commands = flake8 {posargs} |
| 22 | |
| 23 | [testenv:venv] |
| 24 | commands = {posargs} |
| 25 | |
| 26 | [testenv:cover] |
| 27 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 28 | |
| 29 | [testenv:docs] |
| 30 | commands = python setup.py build_sphinx |
| 31 | |
| 32 | [testenv:releasenotes] |
| 33 | commands = |
| 34 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 35 | |
| 36 | [testenv:debug] |
| 37 | commands = oslo_debug_helper {posargs} |
| 38 | |
| 39 | [flake8] |
| 40 | # E123, E125 skipped as they are invalid PEP-8. |
| 41 | |
| 42 | show-source = True |
| 43 | ignore = E123,E125 |
| 44 | builtins = _ |
| 45 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |