2
by Jiri Stransky
Basic project structure |
1 |
[tox]
|
27.1.1
by Petr Blaho
Adds py26 and py33 to tox.ini |
2 |
envlist = py26,py27,py33,pep8,cover |
2
by Jiri Stransky
Basic project structure |
3 |
|
4 |
[testenv]
|
|
5 |
setenv = VIRTUAL_ENV={envdir} |
|
6 |
LANG=en_US.UTF-8
|
|
7 |
LANGUAGE=en_US:en
|
|
8 |
LC_ALL=C
|
|
9 |
||
10 |
deps = -r{toxinidir}/requirements.txt |
|
11 |
-r{toxinidir}/test-requirements.txt
|
|
12 |
commands = python setup.py testr --testr-args='{posargs}' |
|
13 |
||
14 |
[testenv:pep8]
|
|
15 |
commands = flake8 |
|
16 |
||
17 |
[testenv:venv]
|
|
18 |
commands = {posargs} |
|
19 |
||
20 |
[testenv:cover]
|
|
8.1.1
by Petr Blaho
Adds .coveragerc and modify tox.ini for coverage |
21 |
commands = coverage erase |
22 |
python setup.py testr --coverage --omit='tuskarclient/tests/*' --testr-args='{posargs}'
|
|
23 |
coverage report -m
|
|
2
by Jiri Stransky
Basic project structure |
24 |
|
25 |
[tox:jenkins]
|
|
26 |
downloadcache = ~/cache/pip |
|
27 |
||
28 |
[flake8]
|
|
28
by Petr Blaho
Makes code pep8 and hacking suitable |
29 |
ignore = |
2
by Jiri Stransky
Basic project structure |
30 |
show-source = True |
31 |
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |