2013-09-13 00:04:38 +08:00
|
|
|
before_install:
|
2014-06-24 16:16:26 +08:00
|
|
|
- sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp
|
|
|
|
- sudo apt-get -qq purge postgis* postgresql*
|
|
|
|
- sudo apt-add-repository --yes ppa:cartodb/postgresql-9.3
|
|
|
|
- sudo apt-add-repository --yes ppa:cartodb/gis
|
|
|
|
- sudo rm -Rf /var/lib/postgresql /etc/postgresql
|
2013-09-13 00:04:38 +08:00
|
|
|
- sudo apt-add-repository --yes ppa:mapnik/v2.1.0
|
2014-06-24 16:16:26 +08:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install -y postgresql-9.3-postgis-2.1
|
|
|
|
- sudo apt-get install -y postgresql-contrib-9.3
|
|
|
|
- sudo apt-get install -y libmapnik-dev
|
|
|
|
- sudo apt-get install -y gdal-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.3/main/pg_hba.conf
|
|
|
|
- sudo service postgresql restart
|
2013-09-13 00:04:38 +08:00
|
|
|
- createdb template_postgis
|
|
|
|
- psql -c "CREATE EXTENSION postgis" template_postgis
|
2014-06-24 16:16:26 +08:00
|
|
|
|
|
|
|
before_script:
|
2014-02-28 17:50:45 +08:00
|
|
|
# Tell npm to use known registrars:
|
|
|
|
# see http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
|
|
|
|
- npm config set ca ""
|
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:
|
|
|
|
- "0.8"
|
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
|