forked from yourlabs/django-cities-light
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 1001 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: python
python:
- "2.7"
env:
- DJANGO=1.4
install:
- pip install -q Django==$DJANGO --use-mirrors
- pip install pep8 --use-mirrors
- pip install https://github.com/dcramer/pyflakes/tarball/master
- pip install -q -e . --use-mirrors
- pip install south mysql-python psycopg2
before_script:
- "pep8 --ignore=E124,E128 --exclude=tests,migrations cities_light"
- mysql -e 'create database cities_light_test;'
- psql -c 'create database cities_light_test;' -U postgres
script:
- python setup.py test
- rm -rf test_project/db.sqlite
- python test_project/manage.py syncdb --noinput
- python test_project/manage.py migrate
- python test_project/manage.py syncdb --noinput --settings test_project.settings_mysql
- python test_project/manage.py migrate --settings test_project.settings_mysql
- python test_project/manage.py syncdb --noinput --settings test_project.settings_postgres
- python test_project/manage.py migrate --settings test_project.settings_postgres