Commit d57032b3 authored by Denis Bilenko's avatar Denis Bilenko

update .travis.yml

- enable python 2.5
- disable "noinotify" and "nosigmask" (to reduce total testing time)
- update known_failures.txt with 2.5 failures that still need fixing
parent a272afc1
language: python
python:
# - "2.5"
- "2.5"
- "2.6"
- "2.7"
env:
......@@ -10,8 +10,8 @@ env:
- GEVENT_BACKEND=select GEVENTSETUP_EV_VERIFY=3
- GEVENT_BACKEND=poll GEVENTSETUP_EV_VERIFY=3
- GEVENT_BACKEND=signalfd
- GEVENT_BACKEND=nosigmask
- GEVENT_BACKEND=noinotify
# - GEVENT_BACKEND=nosigmask
# - GEVENT_BACKEND=noinotify
matrix:
allow_failures:
- env: GEVENT_BACKEND=signalfd
......@@ -20,30 +20,13 @@ install:
- export VER=$TRAVIS_PYTHON_VERSION
- export PYTHON=/usr/bin/python$VER
- echo $PYTHON && $PYTHON --version
#broken - if [[ $VER == '2.5' ]]; then sudo apt-get install libssl-dev libkrb5-dev libbluetooth-dev; pip install --use-mirrors sslfix; fi
- curl -sSLO --retry 5 --fail https://github.com/downloads/SiteSupport/gevent/python2.7-cython_0.17_i386.deb
- curl -sSLO --retry 5 --fail https://github.com/downloads/SiteSupport/gevent/python$VER-greenlet_0.4.0_i386.deb
- curl -sSLO --retry 5 --fail https://github.com/downloads/SiteSupport/gevent/python$VER-psycopg2_2.4.5_i386.deb
- curl -sSLO --retry 5 --fail https://github.com/downloads/SiteSupport/gevent/python$VER-pysendfile_2.0.0_i386.deb
- curl -sSLO --retry 5 --fail http://pypi.python.org/packages/source/w/web.py/web.py-0.37.tar.gz #md5=93375e3f03e74d6bf5c5096a4962a8db
- sudo dpkg -i python2.7-cython_0.17_i386.deb
- sudo dpkg -i python$VER-greenlet_0.4.0_i386.deb
- sudo dpkg -i python$VER-psycopg2_2.4.5_i386.deb
- sudo dpkg -i python$VER-pysendfile_2.0.0_i386.deb
- tar -xf web.py-0.37.tar.gz && cd web.py-0.37 && sudo $PYTHON setup.py -q install && cd -
- if [[ $VER == '2.7' ]]; then sudo pip install --use-mirrors -q pep8; fi
- cython --version
- $PYTHON -c 'import greenlet; print greenlet, greenlet.__version__; import psycopg2; print psycopg2, psycopg2.__version__; import web; print web, web.__version__'
- "echo `date`: Started installing gevent"
- sudo -E ./travis_install_deps.sh
- sudo $PYTHON setup.py install
script:
- "echo `date`: Started testing"
- cd greentest && $PYTHON testrunner.py --full --expected ../known_failures.txt
- "echo `date`: Finished testing"
notifications:
email:
recipients:
- denis.bilenko@gmail.com
on_success: change
on_failure: change
# format:
# platform environ executable arguments
# instead of platform star ("*") means any platform
# instead of environ star ("*") means any environ, "-" means no gevent-specific environ
# instead of executable star ("*") means any executable
# This is a list of known failures (=bugs).
# format: platform environ executable arguments
# A star ("*") can be used instead of platform, environ or executable (means "any").
* GEVENTARES_SERVERS=8.8.8.8 GEVENT_RESOLVER=ares * -u test__socket_dns.py
* GEVENTARES_SERVERS=8.8.8.8 GEVENT_RESOLVER=ares * -u test__socket_dns6.py
# currently gevent.core.stat watcher does not implement 'prev' and 'attr' attributes on Windows
win32 * C:\Python27\python.exe -u test__core_stat.py
# other Windows-related issues (need investigating)
win32 * C:\Python27\python.exe -u -m monkey_test test_threading.py
win32 * C:\Python27\python.exe -u -m monkey_test --Event test_threading.py
win32 * C:\Python27\python.exe -u -m monkey_test test_telnetlib.py
win32 * C:\Python27\python.exe -u -m monkey_test --Event test_telnetlib.py
win32 * C:\Python27\python.exe -u -m monkey_test test_subprocess.py
win32 * C:\Python27\python.exe -u -m monkey_test --Event test_subprocess.py
# these need investigating:
* * /usr/bin/python2.5 -u -m monkey_test --Event test_urllib2net.py
* * /usr/bin/python2.5 -u -m monkey_test test_urllib2net.py
* * /usr/bin/python2.5 -u test__threading_vs_settrace.py
* * /usr/bin/python2.5 -u test__example_portforwarder.py
* * /usr/bin/python2.5 -u test__socket_close.py
#!/bin/sh
set -e -x
if [ "x$VER" = "x2.5" ]; then apt-get install libssl-dev libkrb5-dev libbluetooth-dev; curl -sSLO --retry 5 --fail http://pypi.python.org/packages/source/s/sslfix/sslfix-1.15.tar.gz; fi
curl -sSLO --retry 5 --fail https://github.com/downloads/denik/packages/python2.7-cython_0.17.1_i386.deb
curl -sSLO --retry 5 --fail https://github.com/downloads/denik/packages/python$VER-greenlet_0.4.0_i386.deb
curl -sSLO --retry 5 --fail https://github.com/downloads/denik/packages/python$VER-psycopg2_2.4.5_i386.deb
curl -sSLO --retry 5 --fail https://github.com/downloads/denik/packages/python$VER-pysendfile_2.0.0_i386.deb
curl -sSLO --retry 5 --fail http://pypi.python.org/packages/source/w/web.py/web.py-0.37.tar.gz #md5=93375e3f03e74d6bf5c5096a4962a8db
dpkg -i python2.7-cython_0.17.1_i386.deb
dpkg -i python$VER-greenlet_0.4.0_i386.deb
dpkg -i python$VER-psycopg2_2.4.5_i386.deb
dpkg -i python$VER-pysendfile_2.0.0_i386.deb
tar -xf web.py-0.37.tar.gz && cd web.py-0.37 && $PYTHON setup.py -q install && cd -
if [ "x$VER" = "x2.5" ]; then tar -xf sslfix-1.15.tar.gz && cd sslfix-1.15 && $PYTHON setup.py -q install && cd -; fi
if [ "x$VER" = "x2.7" ]; then pip install --use-mirrors -q pep8; fi
cython --version
$PYTHON -c 'import greenlet; print greenlet, greenlet.__version__; import psycopg2; print psycopg2, psycopg2.__version__; import web; print web, web.__version__'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment