-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
65 lines (57 loc) · 1.06 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
skip_missing_interpreters = True
envlist =
py26,
py27,
pypy
[base]
deps =
compactor[pb]==0.3.0
futures==2.1.6
mesos.interface==0.21.1
twitter.common.zookeeper==0.3.3
pytest
[testenv]
commands = py.test tests {posargs:}
setenv =
LIBPROCESS_IP = 127.0.0.1
install_command = pip install -f third_party {opts} {packages}
deps =
{[base]deps}
[testenv:py26]
basepython = python2.6
deps =
{[base]deps}
mock
[testenv:py27]
basepython = python2.7
deps =
{[base]deps}
mock
[testenv:pypy]
basepython = pypy
deps =
{[base]deps}
mock
[testenv:coverage]
basepython = python2.7
deps =
{[base]deps}
mock
coverage
commands =
coverage run --source pesos --omit '*_pb2.py' -m pytest -- tests
coverage report
coverage html
[testenv:style]
basepython = python2.7
deps =
twitter.checkstyle
commands =
twitterstyle -n ImportOrder pesos/*.py pesos/bin/*.py tests
[testenv:example]
basepython = python2.7
setenv =
LIBPROCESS_IP = 192.168.33.1
commands =
python pesos/bin/example_scheduler.py {posargs:}