blob: ba0022284384666f9fd109391ec1ae49d6407c04 [file] [log] [blame]
DavidPurcell663aedf2017-01-03 10:01:14 -05001[tox]
DavidPurcell029d8c32017-01-06 15:27:41 -05002minversion = 1.6
Felipe Monteirodf958702017-02-27 03:53:50 +00003envlist = pep8,py35,py27
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
Felipe Monteirodf958702017-02-27 03:53:50 +000012passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
13whitelist_externals = find
DavidPurcell029d8c32017-01-06 15:27:41 -050014deps = -r{toxinidir}/requirements.txt
15 -r{toxinidir}/test-requirements.txt
16commands =
17 find . -type f -name "*.pyc" -delete
Felipe Monteirodf958702017-02-27 03:53:50 +000018 ostestr {posargs} --whitelist-file test-whitelist.txt
DavidPurcell663aedf2017-01-03 10:01:14 -050019
20[testenv:pep8]
21commands = flake8 {posargs}
Felipe Monteirodf958702017-02-27 03:53:50 +000022 check-uuid
23
24[testenv:uuidgen]
25commands = check-uuid --fix
DavidPurcell663aedf2017-01-03 10:01:14 -050026
27[testenv:venv]
28commands = {posargs}
29
30[testenv:cover]
31commands = python setup.py test --coverage --testr-args='{posargs}'
32
33[testenv:docs]
34commands = python setup.py build_sphinx
35
36[testenv:releasenotes]
37commands =
38 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
39
40[testenv:debug]
41commands = oslo_debug_helper {posargs}
42
43[flake8]
44# E123, E125 skipped as they are invalid PEP-8.
45
46show-source = True
47ignore = E123,E125
48builtins = _
49exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build