-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (26 loc) · 1.06 KB
/
.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
29
30
31
32
33
language: python
python:
- "2.6"
- "2.7"
- "3.2"
# Django 1.3 is only compatible with psycopg2 version <= 2.4.1
# Django 1.4 is compatible with newer versions
env:
- DB=sqlite3 DJANGO_VERSION=1.4.3
- DB=sqlite3 DJANGO_VERSION=1.5.2
- DB=postgresql_psycopg2 DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.6
- DB=postgresql_psycopg2 DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.6
install:
- if [[ $DJANGO_VERSION != "1.5.2" ]]; then pip install --use-mirrors django==$DJANGO_VERSION; fi
- if [[ $DJANGO_VERSION == "1.5.2" ]]; then pip install https://github.com/django/django/archive/1.5c1.tar.gz#egg=django; fi
- if [[ $DB == "postgresql_psycopg2" ]]; then pip install psycopg2==$PSYCOPG_VERSION --use-mirrors; fi
- python setup.py develop
before_script:
- if [[ $DB == "postgresql_psycopg2" ]]; then psql -c 'create database pydjango;' -U postgres; fi
script: py.test -s -v --create-db
matrix:
exclude:
- python: "3.2"
env: DB=sqlite3 DJANGO_VERSION=1.4.3
- python: "3.2"
env: DB=postgresql_psycopg2 DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.6