blob: 00b23d09df719a34e6793a46932cbd5c7444475e [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001[tox]
2minversion = 2.0
3envlist = py35,py27,pypy,pep8
4skipsdist = True
5
6[testenv]
7usedevelop = True
pengyueshenge2eb90b2019-09-24 16:03:31 +08008install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01009setenv =
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]
Doug Hellmanne5117d12018-09-26 18:55:53 -040020basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010021commands = flake8 {posargs}
22
23[testenv:venv]
Doug Hellmanne5117d12018-09-26 18:55:53 -040024basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010025commands = {posargs}
26
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010027[testenv:docs]
Doug Hellmanne5117d12018-09-26 18:55:53 -040028basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010029commands = python setup.py build_sphinx
30
31[testenv:releasenotes]
Doug Hellmanne5117d12018-09-26 18:55:53 -040032basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010033commands =
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