blob: 847adade99d6340d503abd2f015e5d986d0bbdcb [file] [log] [blame]
DavidPurcell663aedf2017-01-03 10:01:14 -05001[tox]
DavidPurcell029d8c32017-01-06 15:27:41 -05002minversion = 1.6
3envlist = py35,py27,pypy,pep8
DavidPurcell663aedf2017-01-03 10:01:14 -05004skipsdist = 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
DavidPurcell029d8c32017-01-06 15:27:41 -050012passenv = 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
13whitelist_externals = *
14deps = -r{toxinidir}/requirements.txt
15 -r{toxinidir}/test-requirements.txt
16commands =
17 find . -type f -name "*.pyc" -delete
18 ostestr {posargs}
DavidPurcell663aedf2017-01-03 10:01:14 -050019
20[testenv:pep8]
21commands = flake8 {posargs}
22
23[testenv:venv]
24commands = {posargs}
25
26[testenv:cover]
27commands = python setup.py test --coverage --testr-args='{posargs}'
28
29[testenv:docs]
30commands = python setup.py build_sphinx
31
32[testenv:releasenotes]
33commands =
34 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
35
36[testenv:debug]
37commands = oslo_debug_helper {posargs}
38
39[flake8]
40# E123, E125 skipped as they are invalid PEP-8.
41
42show-source = True
43ignore = E123,E125
44builtins = _
45exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build