-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
33 lines (27 loc) · 923 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[tox]
minversion = 1.6
envlist = py34,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
#{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands =
coverage erase
python setup.py testr --coverage --testr-args='{posargs}'
coverage report -m
#[testenv:debug]
#commands = oslo_debug_helper -t
[testenv:pep8]
commands = {toxinidir}/tools/hacking.sh {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
show-source = True
ignore = F,H
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build