Anyway, --use-mirrors is going to de deprecated in future releases of pip. Pypi infrastructure is more reliable than a year ago, let's hope we don't incur in any downtimes.
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
language: python
|
|
|
|
python:
|
|
- '2.5'
|
|
- '2.6'
|
|
- '2.7'
|
|
- 'pypy'
|
|
install:
|
|
- pip install -e .
|
|
env:
|
|
- DB=sqlite:memory
|
|
- DB=mysql://root:@localhost/test_w2p
|
|
- DB=postgres://postgres:@localhost/test_w2p
|
|
before_script:
|
|
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then pip install unittest2; fi
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install coverage; fi;
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install python-coveralls; fi
|
|
- if [[ $DB == postgres* ]]; then pip install psycopg2; fi;
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.5' ]]; then pip install pysqlite; 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
|
|
#Temporal solution to travis issue #155
|
|
- sudo chmod 777 /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: export COVERAGE_PROCESS_START=gluon/tests/coverage.ini; ./web2py.py --run_system_tests --with_coverage
|
|
after_success:
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage combine; fi
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coveralls --config_file=gluon/tests/coverage.ini; fi
|
|
|
|
notifications:
|
|
email: true
|