forked from PaloAltoNetworks/minemeld-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (40 loc) · 1.13 KB
/
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
43
44
[tox]
envlist = py27, flake8
skipsdist = True
[testenv:py27]
basedeps = mock
nose
coverage
guppy
xmltodict
changedir = {envtmpdir}
setenv = PYTHONPATH = {toxinidir}
deps = {[testenv:py27]basedeps}
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-web.txt
commands = nosetests -a '!slow' -s {posargs}
[testenv:flake8]
deps = flake8
commands = flake8 --ignore E402,E226 --max-line-length=100
[testenv:stress]
basepython = python2.7
basedeps = mock
nose
guppy
changedir = {envtmpdir}
setenv = PYTHONPATH = {toxinidir}
deps = {[testenv:py27]basedeps}
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-web.txt
commands = nosetests -s --logging-level=INFO -a 'slow' {posargs}
[testenv:profile]
basepython = python2.7
basedeps = mock
nose
guppy
changedir = {envtmpdir}
setenv = PYTHONPATH = {toxinidir}
deps = {[testenv:py27]basedeps}
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-web.txt
commands = nosetests -s --logging-level=INFO --with-profile --profile-stats-file profile.log -a 'slow' {posargs}