Commit e89507f9 authored by Denis Bilenko's avatar Denis Bilenko

travis: use pip/virtualenv

the old .deb packages were 32bit and travis is now 64bit

also update known_failures.txt w.r.t python path
parent 1748c4ce
......@@ -29,14 +29,16 @@ matrix:
- python: 2.5
env: DEBUGPY=-dbg GEVENTSETUP_EV_VERIFY=3
install:
- deactivate
- export VER=$TRAVIS_PYTHON_VERSION$DEBUGPY
- export PYTHON=/usr/bin/python$VER
- sudo -E ./travis_install_deps.sh
- echo $PYTHON && $PYTHON --version
- sudo $PYTHON setup.py install
- pip install --use-mirrors cython
- cython --version
- pip install --use-mirrors greenlet psycopg2 pysendfile web.py
- if [ "x$TRAVIS_PYTHON_VERSION" == "x2.5" ]; then sudo apt-get install libssl-dev libkrb5-dev libbluetooth-dev; pip install --use-mirrors sslfix; fi
- if [ "x$TRAVIS_PYTHON_VERSION" == "x2.7" ]; then pip install --use-mirrors -q pep8; fi
- python -c 'import greenlet; print greenlet, greenlet.__version__; import psycopg2; print psycopg2, psycopg2.__version__; import web; print web, web.__version__'
- export CYTHON=`which cython`
- python setup.py install
script:
- cd greentest && $PYTHON testrunner.py --full --expected ../known_failures.txt
- cd greentest && python testrunner.py --full --expected ../known_failures.txt
notifications:
email:
recipients:
......
......@@ -16,11 +16,11 @@ 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(-dbg)? -u -m monkey_test --Event test_urllib2net.py
* * /usr/bin/python2.5(-dbg)? -u -m monkey_test test_urllib2net.py
* * /usr/bin/python2.5(-dbg)? -u test__threading_vs_settrace.py
* * /usr/bin/python2.5(-dbg)? -u test__example_portforwarder.py
* * /usr/bin/python2.5(-dbg)? -u test__socket_close.py
* * .*/python2.5(-dbg)? -u -m monkey_test --Event test_urllib2net.py
* * .*/python2.5(-dbg)? -u -m monkey_test test_urllib2net.py
* * .*/python2.5(-dbg)? -u test__threading_vs_settrace.py
* * .*/python2.5(-dbg)? -u test__example_portforwarder.py
* * .*/python2.5(-dbg)? -u test__socket_close.py
# bunch of SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
# seems to be Python/OpenSSL problem, not gevent's
......
#!/bin/sh
set -e -x
apt-get update -yqq || true
apt-get upgrade -yqq || true
apt-get install -q python$VER
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