tests: Improve tox configuration and setup Travis
This commit is contained in:

committed by
Sergey Shepelev

parent
1c243a4af2
commit
5b16b84c42
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
language: python
|
||||||
|
python: 2.7
|
||||||
|
install:
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -qq libssl-dev libmysqlclient-dev libpq-dev
|
||||||
|
- pip install tox
|
||||||
|
before_script:
|
||||||
|
- "export EVENTLET_DB_TEST_AUTH='{\"psycopg2\": {\"user\": \"postgres\"}, \"MySQLdb\": {\"passwd\": \"\", \"host\": \"localhost\", \"user\": \"root\"}}'"
|
||||||
|
script:
|
||||||
|
- tox -e py25selects,py25poll; true
|
||||||
|
- tox -e py26selects,py26poll,py26epolls,py27selects,py27poll,py27epolls
|
@@ -182,6 +182,7 @@ class TestGreenSocket(LimitedTestCase):
|
|||||||
gt.wait()
|
gt.wait()
|
||||||
|
|
||||||
def test_send_timeout(self):
|
def test_send_timeout(self):
|
||||||
|
self.reset_timeout(2)
|
||||||
listener = bufsized(eventlet.listen(('', 0)))
|
listener = bufsized(eventlet.listen(('', 0)))
|
||||||
|
|
||||||
evt = event.Event()
|
evt = event.Event()
|
||||||
|
37
tox.ini
37
tox.ini
@@ -1,42 +1,71 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py25,py26,py27
|
envlist = py25selects,py25poll,py26selects,py26poll,py26epolls,py27selects,py27poll,py27epolls
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = nose
|
downloadcache = {toxworkdir}/pip_download_cache
|
||||||
|
deps =
|
||||||
|
nose==1.2.1
|
||||||
|
pyopenssl==0.13
|
||||||
|
MySQL-python==1.2.4
|
||||||
|
psycopg2==2.4.6
|
||||||
commands =
|
commands =
|
||||||
nosetests tests/
|
nosetests --verbose tests/
|
||||||
nosetests --with-doctest eventlet/coros.py eventlet/event.py \
|
nosetests --verbose --with-doctest eventlet/coros.py eventlet/event.py \
|
||||||
eventlet/pool.py eventlet/pools.py eventlet/proc.py \
|
eventlet/pool.py eventlet/pools.py eventlet/proc.py \
|
||||||
eventlet/queue.py eventlet/timeout.py
|
eventlet/queue.py eventlet/timeout.py
|
||||||
|
|
||||||
[testenv:py25selects]
|
[testenv:py25selects]
|
||||||
basepython = python2.5
|
basepython = python2.5
|
||||||
setenv = EVENTLET_HUB = selects
|
setenv = EVENTLET_HUB = selects
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq<2.2
|
||||||
|
|
||||||
[testenv:py25poll]
|
[testenv:py25poll]
|
||||||
basepython = python2.5
|
basepython = python2.5
|
||||||
setenv = EVENTLET_HUB = poll
|
setenv = EVENTLET_HUB = poll
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq<2.2
|
||||||
|
|
||||||
[testenv:py26selects]
|
[testenv:py26selects]
|
||||||
basepython = python2.6
|
basepython = python2.6
|
||||||
setenv = EVENTLET_HUB = selects
|
setenv = EVENTLET_HUB = selects
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq==2.2.0.1
|
||||||
|
|
||||||
[testenv:py26poll]
|
[testenv:py26poll]
|
||||||
basepython = python2.6
|
basepython = python2.6
|
||||||
setenv = EVENTLET_HUB = poll
|
setenv = EVENTLET_HUB = poll
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq==2.2.0.1
|
||||||
|
|
||||||
[testenv:py26epolls]
|
[testenv:py26epolls]
|
||||||
basepython = python2.6
|
basepython = python2.6
|
||||||
setenv = EVENTLET_HUB = epolls
|
setenv = EVENTLET_HUB = epolls
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq==2.2.0.1
|
||||||
|
|
||||||
[testenv:py27selects]
|
[testenv:py27selects]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
setenv = EVENTLET_HUB = selects
|
setenv = EVENTLET_HUB = selects
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq==2.2.0.1
|
||||||
|
|
||||||
[testenv:py27poll]
|
[testenv:py27poll]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
setenv = EVENTLET_HUB = poll
|
setenv = EVENTLET_HUB = poll
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq==2.2.0.1
|
||||||
|
|
||||||
[testenv:py27epolls]
|
[testenv:py27epolls]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
setenv = EVENTLET_HUB = epolls
|
setenv = EVENTLET_HUB = epolls
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pyzmq==2.2.0.1
|
||||||
|
Reference in New Issue
Block a user