[tox]
envlist = py27, pypy

[testenv]
deps =
    nose
    mock==1.0.1
    coverage>=4.0.2
    unittest2
# 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.0.1
    coverage>=4.0.2
    unittest2
    gevent>=1.1b6

[tox]
# TODO: Reinstate pypy once gevent segfault is resolved.
envlist = py27

[testenv]
deps =
    nose
    mock==1.0.1
    coverage>=4.0.2
    unittest2
# 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.0.1
    coverage>=4.0.2
    unittest2
    gevent>=1.1b6

Remove pypy support too. gevent 1.1 + pypy 4.0.1 seem to produce segfaults
Remove pypy support too.  gevent 1.1 + pypy 4.0.1 seem to produce segfaults

Tracked by: https://bitbucket.org/pypy/pypy/issues/2209/segfault-while-running-our-uts-after
and: https://github.com/gevent/gevent/issues/704
