forked from pollo/FindMySpot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
22 lines (22 loc) · 868 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
rvm:
- 1.9.3
python:
- 2.7
branches:
only:
- develop
install:
- sudo apt-get update
- sudo apt-get install postgresql-9.1-postgis python-gdal
- sudo pip install -r requirements/base.txt
- sudo pip install -r requirements/test.txt
before_script:
- sudo su postgres -c "createdb template_postgis" || true
- sudo su postgres -c "createlang plpgsql template_postgis" || true
- sudo su postgres -c "psql -d template_postgis -f `find /usr/share -name postgis.sql -print -quit`" || true
- sudo su postgres -c "psql -d template_postgis -f `find /usr/share -name spatial_ref_sys.sql -print -quit`" || true
- sudo su postgres -c "createdb -T template_postgis hsmapper" || true
- echo "standard_conforming_strings = off" | sudo tee -a /etc/postgresql/9.1/main/postgresql.conf
- sudo /etc/init.d/postgresql-9.1 reload
script:
- python hsmapper/manage.py test --noinput core