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