27 lines
1009 B
YAML
27 lines
1009 B
YAML
before_script:
|
|
- lsb_release -a
|
|
- sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp
|
|
- sudo apt-get -qq purge postgis* postgresql*
|
|
- sudo rm -Rf /var/lib/postgresql /etc/postgresql
|
|
- sudo apt-add-repository --yes ppa:cartodb/postgresql-9.5
|
|
- sudo apt-add-repository --yes ppa:cartodb/gis
|
|
- sudo apt-get update
|
|
- sudo apt-get install -q postgresql-9.5-postgis-2.2
|
|
- sudo apt-get install -q postgresql-contrib-9.5
|
|
- sudo apt-get install -q postgresql-plpython-9.5
|
|
- sudo apt-get install -q postgis
|
|
- sudo apt-get install -q gdal-bin
|
|
- sudo apt-get install -q ogr2ogr2-static-bin
|
|
- echo -e "local\tall\tall\ttrust\nhost\tall\tall\t127.0.0.1/32\ttrust\nhost\tall\tall\t::1/128\ttrust" |sudo tee /etc/postgresql/9.5/main/pg_hba.conf
|
|
- sudo service postgresql restart
|
|
- psql -c 'create database template_postgis;' -U postgres
|
|
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d template_postgis
|
|
- ./configure
|
|
|
|
env:
|
|
- PGUSER=postgres
|
|
|
|
language: node_js
|
|
node_js:
|
|
- "0.10"
|