forked from gluster/libgfapi-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (34 loc) · 879 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
34
35
36
37
38
39
40
41
42
[tox]
envlist = py26,py27,py36,pep8
minversion = 1.6
[testenv]
passenv = LD_LIBRARY_PATH
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
NOSE_COVER_ERASE=1
NOSE_COVER_PACKAGE=gluster
deps =
-r{toxinidir}/test-requirements.txt
commands = nosetests -v {posargs:test/unit}
[testenv:functest]
commands = nosetests -s -v {posargs:test/functional}
[testenv:functest27]
basepython = python2.7
commands = nosetests -s -v {posargs:test/functional}
[testenv:functest36]
basepython = python3.6
commands = nosetests -s -v {posargs:test/functional}
[testenv:pep8]
commands =
flake8 {posargs:gluster test setup.py}
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
[testenv:venv]
commands = {posargs}
[flake8]
ignore = H
builtins = _
exclude = .venv,.tox,dist,doc,test,*egg
show-source = True