forked from jpwatts/django-positions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 799 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
25
26
27
28
language: python
addons:
postgresql: "9.3"
python:
- "2.7"
env:
- "DJANGO_VERSION=1.7.4 DB=postgres"
- "DJANGO_VERSION=1.7.4 DB=sqlite"
- "DJANGO_VERSION=1.7.4 DB=mysql"
- "DJANGO_VERSION=1.6.10 DB=postgres"
- "DJANGO_VERSION=1.6.10 DB=sqlite"
- "DJANGO_VERSION=1.6.10 DB=mysql"
# command to install dependencies
install:
- "pip install -q Django==$DJANGO_VERSION"
- "if [[ $DB == mysql ]]; then pip install -q mysql-python --use-mirrors; fi"
- "if [[ $DB == postgres ]]; then pip install -q psycopg2 --use-mirrors; fi"
before_script:
- psql -c 'create database django_positions;' -U postgres
- mysql -e 'create database django_positions;'
# command to run tests
script: django-admin.py test --pythonpath=`pwd` --settings positions.examples.ci_settings_$DB positions