forked from openwisp/django-rest-framework-gis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·46 lines (37 loc) · 983 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: python
services:
- postgresql
python:
- "3.4"
- "3.3"
- "2.7"
- "2.6"
env:
- DJANGO="django==1.8.1"
- DJANGO="django==1.7.8"
- DJANGO="django==1.6.11"
- DJANGO="django==1.5.12"
matrix:
exclude:
- python: "2.6"
env: DJANGO="django==1.7.8"
- python: "2.6"
env: DJANGO="django==1.8.1"
branches:
only:
- master
# command to install requirements
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install ordereddict; fi
- pip install $DJANGO
- pip install -r requirements-test.txt
- python setup.py -q install
before_script:
- createdb django_restframework_gis
- psql -U postgres -d django_restframework_gis -c "CREATE EXTENSION postgis;"
- psql -U postgres -d django_restframework_gis -c "CREATE EXTENSION postgis_topology;"
# command to run tests, e.g. python setup.py test
script:
- coverage run --source=rest_framework_gis,django_restframework_gis_tests runtests.py
after_success:
coveralls