Updated tox.ini to run Gevent and Eventlet tests independently
This commit is contained in:
@@ -12,6 +12,11 @@ python -c "import platform; print(platform.architecture())"
|
||||
|
||||
$wc = New-Object 'System.Net.WebClient'
|
||||
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit
|
||||
|
||||
$env:MONKEY_PATCH_LOOP=1
|
||||
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_geventreactor.py
|
||||
nosetests -s -v --with-ignore-docstrings --with-xunit --xunit-file=unit_results.xml .\tests\unit\io\test_eventletreactor.py
|
||||
|
||||
echo "uploading unit results"
|
||||
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unit_results.xml))
|
||||
|
||||
|
||||
32
tox.ini
32
tox.ini
@@ -7,13 +7,39 @@ deps = nose
|
||||
PyYAML
|
||||
six
|
||||
packaging
|
||||
cython
|
||||
gevent
|
||||
eventlet
|
||||
twisted <15.5.0
|
||||
|
||||
[testenv]
|
||||
deps = {[base]deps}
|
||||
cython
|
||||
py{27}: gevent
|
||||
twisted <15.5.0
|
||||
|
||||
setenv = LIBEV_EMBED=0
|
||||
CARES_EMBED=0
|
||||
changedir = {envtmpdir}
|
||||
commands = nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/
|
||||
|
||||
|
||||
[testenv:py27]
|
||||
deps = {[base]deps}
|
||||
|
||||
setenv = LIBEV_EMBED=0
|
||||
CARES_EMBED=0
|
||||
MONKEY_PATCH_LOOP=1
|
||||
changedir = {envtmpdir}
|
||||
commands =
|
||||
nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_eventletreactor.py
|
||||
nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_geventreactor.py
|
||||
|
||||
|
||||
[testenv:py34]
|
||||
deps = {[base]deps}
|
||||
|
||||
setenv = LIBEV_EMBED=0
|
||||
CARES_EMBED=0
|
||||
MONKEY_PATCH_LOOP=1
|
||||
changedir = {envtmpdir}
|
||||
commands =
|
||||
nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_eventletreactor.py
|
||||
nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_geventreactor.py
|
||||
|
||||
Reference in New Issue
Block a user