forked from charettes/django-mutant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (46 loc) · 1.66 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
branches:
only:
- master
language: python
python:
- 2.6
- 2.7
addons:
postgresql: "9.3"
services:
- redis-server
env:
- REQUIREMENTS=1.5.X BACKEND=sqlite3
- REQUIREMENTS=1.5.X-postgres BACKEND=postgresql_psycopg2
- REQUIREMENTS=1.5.X-postgres BACKEND=postgis
- REQUIREMENTS=1.6.X BACKEND=sqlite3
- REQUIREMENTS=1.6.X-postgres BACKEND=postgresql_psycopg2
- REQUIREMENTS=1.6.X-postgres BACKEND=postgis
- REQUIREMENTS=master BACKEND=sqlite3
- REQUIREMENTS=master-postgres BACKEND=postgresql_psycopg2
- REQUIREMENTS=master-postgres BACKEND=postgis
matrix:
exclude:
- python: 2.6
env: REQUIREMENTS=master BACKEND=sqlite3
- python: 2.6
env: REQUIREMENTS=master-postgres BACKEND=postgresql_psycopg2
- python: 2.6
env: REQUIREMENTS=master-postgres BACKEND=postgis
allow_failures:
- env: REQUIREMENTS=master BACKEND=sqlite3
- env: REQUIREMENTS=master-postgres BACKEND=postgresql_psycopg2
- env: REQUIREMENTS=master-postgres BACKEND=postgis
install:
- pip install -r requirements/$REQUIREMENTS.txt -q --use-mirrors
- pip install coveralls redis -q --use-mirrors
- pip freeze
before_script:
- if echo $BACKEND | grep 'postgis' -q; then sudo apt-get install postgis; fi
- if echo $BACKEND | grep -E '(postgresql|postgis)' -q; then psql -U postgres -c "CREATE DATABASE mutant;"; fi
- if echo $BACKEND | grep 'postgis' -q; then psql mutant -U postgres -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;"; fi
script:
- python -Wonce `which coverage` run `which django-admin.py` test --pythonpath=`pwd` --settings=mutant.tests.settings.$BACKEND -v2
after_success:
- coverage report -m
- coveralls