new .travis.ci for Pypy testing, thanks Niphlod
This commit is contained in:
+10
-4
@@ -4,22 +4,28 @@ python:
|
|||||||
- '2.5'
|
- '2.5'
|
||||||
- '2.6'
|
- '2.6'
|
||||||
- '2.7'
|
- '2.7'
|
||||||
|
- 'pypy'
|
||||||
env:
|
env:
|
||||||
- DB=sqlite:memory
|
- DB=sqlite:memory
|
||||||
- DB=mysql://root:@localhost/test_w2p
|
- DB=mysql://root:@localhost/test_w2p
|
||||||
- DB=postgres://postgres:@localhost/test_w2p
|
- DB=postgres://postgres:@localhost/test_w2p
|
||||||
before_script:
|
before_script:
|
||||||
- pip install unittest2
|
- pip install unittest2
|
||||||
- if [[ $DB == postgres* ]]; then pip install --use-mirrors psycopg2; fi
|
- if [[ $DB == postgres* ]]; then pip install --use-mirrors psycopg2; fi;
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.5' ]]; then pip install --use-mirrors pysqlite; fi
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.5' ]]; then pip install --use-mirrors pysqlite; fi
|
||||||
- if [[ $DB == mysql* ]]; then mysql -e 'create database test_w2p;'; fi
|
- if [[ $DB == mysql* ]]; then mysql -e 'create database test_w2p;'; fi
|
||||||
- if [[ $DB == postgres* ]]; then psql -c 'create database test_w2p;' -U postgres; fi
|
- if [[ $DB == postgres* ]]; then psql -c 'create database test_w2p;' -U postgres; fi
|
||||||
#Temporal solution to travis issue #155
|
#Temporal solution to travis issue #155
|
||||||
- sudo chmod 777 /dev/shm
|
- sudo chmod 777 /dev/shm
|
||||||
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
|
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
|
||||||
|
matrix:
|
||||||
|
exclude:
|
||||||
|
- python: 'pypy'
|
||||||
|
env: DB=postgres://postgres:@localhost/test_w2p
|
||||||
|
- python: 'pypy'
|
||||||
|
env: DB=mysql://root:@localhost/test_w2p
|
||||||
|
|
||||||
script: PYTHONPATH=. unit2 -v gluon.tests
|
script: PYTHONPATH=. unit2 -v gluon.tests
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: true
|
||||||
irc:
|
|
||||||
channels: "irc.freenode.org#web2py"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user