-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
24 lines (24 loc) · 1.14 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
notifications:
email: false
language: python
python:
- 2.6
- 2.7
before_install:
- sudo apt-get install postgresql-9.1-postgis python-gdal
install:
- pip install -r feowl-api/requirements.txt --use-mirrors
before_script:
- createdb -E UTF8 -U postgres template_postgis
- psql -d template_postgis -c "CREATE EXTENSION hstore;" -U postgres
- psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql -U postgres
- psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql -U postgres
- psql -d template_postgis -c "select postgis_lib_version();" -U postgres
- psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;" -U postgres
- psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" -U postgres
- psql -d template_postgis -c "GRANT ALL ON geography_columns TO PUBLIC;" -U postgres
- psql -c "UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template_postgis';" -U postgres
- createdb --template=template_postgis --owner=postgres feowl
script:
- cd feowl-api
- python manage.py test -v3 feowl