blob: f168afd14108b7d16a1facc96655686696d8941f [file] [log] [blame]
Michael Johnson34139b02017-03-15 10:31:10 -07001[tox]
2minversion = 2.0
3envlist = py35,py27,pep8
4skipsdist = 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
12deps = -r{toxinidir}/test-requirements.txt
13commands = python setup.py test --slowest --testr-args='{posargs}'
14
15[testenv:pep8]
16commands = flake8 {posargs}
17
18[testenv:venv]
19commands = {posargs}
20
21[testenv:cover]
22commands = python setup.py test --coverage --testr-args='{posargs}'
23
24[testenv:docs]
Jude Cross986e3f52017-07-24 14:57:20 -070025deps =
26 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
27 -r{toxinidir}/requirements.txt
28 -r{toxinidir}/doc/requirements.txt
29whitelist_externals = rm
30commands =
31 rm -rf doc/build
32 sphinx-build -W -b html doc/source doc/build/html
Michael Johnson34139b02017-03-15 10:31:10 -070033
34[testenv:releasenotes]
Jude Cross986e3f52017-07-24 14:57:20 -070035deps =
36 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
37 -r{toxinidir}/requirements.txt
38 -r{toxinidir}/doc/requirements.txt
Michael Johnson34139b02017-03-15 10:31:10 -070039commands =
40 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
41
42[testenv:debug]
43commands = oslo_debug_helper {posargs}
44
45[flake8]
46# E123, E125 skipped as they are invalid PEP-8.
47
48show-source = True
49ignore = E123,E125
50builtins = _
51exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
Jude Cross986e3f52017-07-24 14:57:20 -070052
53[testenv:genconfig]
54whitelist_externals = mkdir
55commands =
56 mkdir -p etc
57 oslo-config-generator --output-file etc/octavia.tempest.conf.sample \
58 --namespace tempest.config