2014-10-15 16:48:00 +08:00
|
|
|
addons:
|
2016-03-04 03:51:53 +08:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- pkg-config
|
|
|
|
- libcairo2-dev
|
|
|
|
- libjpeg8-dev
|
|
|
|
- libgif-dev
|
2014-10-15 16:48:00 +08:00
|
|
|
|
2013-09-13 00:04:38 +08:00
|
|
|
before_install:
|
2016-02-05 00:24:02 +08:00
|
|
|
- npm install -g npm@2
|
2016-07-03 01:54:34 +08:00
|
|
|
- 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-plpython-9.5
|
|
|
|
- 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
|
2013-09-13 00:04:38 +08:00
|
|
|
- createdb template_postgis
|
2016-02-15 20:00:21 +08:00
|
|
|
- createuser publicuser
|
2013-09-13 00:04:38 +08:00
|
|
|
- psql -c "CREATE EXTENSION postgis" template_postgis
|
2014-06-24 16:16:26 +08:00
|
|
|
|
2013-09-13 00:04:38 +08:00
|
|
|
env:
|
2014-06-24 16:25:02 +08:00
|
|
|
- NPROCS=1 JOBS=1 PGUSER=postgres
|
2013-09-13 00:04:38 +08:00
|
|
|
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
2014-02-13 15:15:43 +08:00
|
|
|
- "0.10"
|
2013-11-27 01:11:49 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.freenode.org#cartodb"
|
|
|
|
use_notice: true
|