2016-12-19 17:21:28 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.8
|
|
|
|
|
2016-09-15 03:18:54 +08:00
|
|
|
before_install:
|
2014-06-04 00:11:32 +08:00
|
|
|
- lsb_release -a
|
2016-08-30 20:27:02 +08:00
|
|
|
- sudo mv /etc/apt/sources.list.d/pgdg.list* /tmp
|
2014-06-04 00:11:32 +08:00
|
|
|
- sudo apt-get -qq purge postgis* postgresql*
|
|
|
|
- sudo rm -Rf /var/lib/postgresql /etc/postgresql
|
2016-06-01 00:26:06 +08:00
|
|
|
- sudo apt-add-repository --yes ppa:cartodb/postgresql-9.5
|
2014-06-03 23:53:06 +08:00
|
|
|
- sudo apt-add-repository --yes ppa:cartodb/gis
|
|
|
|
- sudo apt-get update
|
2016-06-01 00:26:06 +08:00
|
|
|
- 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
|
2014-06-04 00:11:32 +08:00
|
|
|
- sudo apt-get install -q postgis
|
|
|
|
- sudo apt-get install -q gdal-bin
|
2015-06-16 21:58:33 +08:00
|
|
|
- sudo apt-get install -q ogr2ogr2-static-bin
|
2016-06-01 00:39:50 +08:00
|
|
|
- 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
|
2014-06-04 00:11:32 +08:00
|
|
|
- sudo service postgresql restart
|
2014-06-03 21:45:01 +08:00
|
|
|
- psql -c 'create database template_postgis;' -U postgres
|
|
|
|
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d template_postgis
|
2013-10-01 00:12:25 +08:00
|
|
|
- ./configure
|
2013-10-01 00:02:48 +08:00
|
|
|
|
2014-06-19 17:44:33 +08:00
|
|
|
env:
|
2016-12-19 17:21:28 +08:00
|
|
|
- PGUSER=postgres CXX=g++-4.8
|
2014-06-19 17:44:33 +08:00
|
|
|
|
2013-10-01 00:02:48 +08:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2016-12-19 17:21:28 +08:00
|
|
|
- "6"
|