/
tox.ini
36 lines (34 loc) · 939 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
[tox]
# TODO: Reinstate pypy once gevent segfault is resolved.
envlist = py27
[testenv]
deps =
nose
mock>=1.3.0
coverage>=4.0.2
unittest2
diff_cover
# Each of our components uses a different scheme of
# thread monkey-patching so run each separately. We'd like to
# use "nosetests --with-coverage" but there's no way to pass
# the "--concurrency" argument to coverage so we do that with
# the tox-cover.sh wrapper script.
commands =
./tox-cover.sh thread calico.test
./tox-cover.sh gevent calico.felix
./tox-cover.sh thread calico.etcddriver
coverage report -m
[testenv:pypy]
# In pypy, we can only collect coverage for non-greenlet
# components so don't collect for Felix.
commands =
./tox-cover.sh thread calico.test
nosetests calico.felix
./tox-cover.sh thread calico.etcddriver
coverage report -m
deps =
nose
mock>=1.3.0
coverage>=4.0.2
unittest2
gevent>=1.1b6