diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -0,0 +1,40 @@ | |||
1 | [tox] | ||
2 | minversion = 2.0 | ||
3 | envlist = py34,py27,pypy,pep8 | ||
4 | skipsdist = True | ||
5 | |||
6 | [testenv] | ||
7 | usedevelop = True | ||
8 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} | ||
9 | setenv = | ||
10 | VIRTUAL_ENV={envdir} | ||
11 | PYTHONWARNINGS=default::DeprecationWarning | ||
12 | deps = -r{toxinidir}/test-requirements.txt | ||
13 | commands = python setup.py test --slowest --testr-args='{posargs}' | ||
14 | |||
15 | [testenv:pep8] | ||
16 | commands = flake8 {posargs} | ||
17 | |||
18 | [testenv:venv] | ||
19 | commands = {posargs} | ||
20 | |||
21 | [testenv:cover] | ||
22 | commands = python setup.py test --coverage --testr-args='{posargs}' | ||
23 | |||
24 | [testenv:docs] | ||
25 | commands = python setup.py build_sphinx | ||
26 | |||
27 | [testenv:releasenotes] | ||
28 | commands = | ||
29 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html | ||
30 | |||
31 | [testenv:debug] | ||
32 | commands = oslo_debug_helper {posargs} | ||
33 | |||
34 | [flake8] | ||
35 | # E123, E125 skipped as they are invalid PEP-8. | ||
36 | |||
37 | show-source = True | ||
38 | ignore = E123,E125 | ||
39 | builtins = _ | ||
40 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build | ||