Skip to content

Commit

Permalink
TravisCI: Use PostGIS 2.0 database
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Apr 2, 2013
1 parent 9c28811 commit 8dfa62d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Expand Up @@ -7,6 +7,11 @@ services:
- postgresql

install:
# Add PPAs for GEOS 3.3.x and PostGIS 2.x
- sudo apt-add-repository -y ppa:sharpie/for-science
- sudo apt-add-repository -y ppa:sharpie/postgis-nightly
- sudo apt-get update

# Install PostGIS
- sudo apt-get install postgresql-9.1-postgis postgresql-contrib-9.1 -q

Expand All @@ -21,8 +26,8 @@ before_script:
- psql -U postgres -c 'CREATE DATABASE skylines_test;'

# Install PostGIS extension into the database
- psql -U postgres -d skylines_test -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
- psql -U postgres -d skylines_test -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
- psql -U postgres -d skylines_test -c 'CREATE EXTENSION postgis;'
- psql -U postgres -d skylines_test -f /usr/share/postgresql/9.1/contrib/postgis-2.1/legacy_minimal.sql

# Install fuzzystrmatch extension into the database
- psql -U postgres -d skylines_test -c 'CREATE EXTENSION fuzzystrmatch;'
Expand Down

0 comments on commit 8dfa62d

Please sign in to comment.