blob: 021847708022447fc23aa33949f4d2739acadf86 [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001[tox]
2minversion = 2.0
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07003envlist = py3,pypy,pep8
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01004skipsdist = True
5
6[testenv]
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07007basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01008usedevelop = True
pengyueshenge2eb90b2019-09-24 16:03:31 +08009install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010010setenv =
11 VIRTUAL_ENV={envdir}
12 PYTHONWARNINGS=default::DeprecationWarning
13 OS_STDOUT_CAPTURE=1
14 OS_STDERR_CAPTURE=1
15 OS_TEST_TIMEOUT=60
16deps = -r{toxinidir}/requirements.txt
17 -r{toxinidir}/test-requirements.txt
Raissa Sarmento80f5fbf2017-10-16 14:38:36 +010018# commands = python setup.py test --slowest --testr-args='{posargs}'
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010019
20[testenv:pep8]
21commands = flake8 {posargs}
22
23[testenv:venv]
24commands = {posargs}
25
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010026[testenv:docs]
27commands = python setup.py build_sphinx
28
29[testenv:releasenotes]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010030commands =
31 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
32
33[testenv:debug]
34commands = oslo_debug_helper {posargs}
35
36[flake8]
37# E123, E125 skipped as they are invalid PEP-8.
38
39show-source = True
40ignore = E123,E125
41builtins = _
42exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build