Attempt to use travis' pg 9.5 addon
This commit is contained in:
parent
3af9549939
commit
7f414f8adf
13
.travis.yml
13
.travis.yml
@ -1,21 +1,16 @@
|
|||||||
|
dist: trusty # only environment that supports Postgres 9.5 at this time
|
||||||
|
sudo: required
|
||||||
addons:
|
addons:
|
||||||
|
postgresql: "9.5"
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
- postgresql-plpython-9.5
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- libcairo2-dev
|
- libcairo2-dev
|
||||||
- libjpeg8-dev
|
- libjpeg8-dev
|
||||||
- libgif-dev
|
- libgif-dev
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- lsb_release -a
|
|
||||||
- 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 --force-yes postgresql-9.5-postgis-2.2 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
|
|
||||||
- createdb template_postgis
|
- createdb template_postgis
|
||||||
- createuser publicuser
|
- createuser publicuser
|
||||||
- psql -c "CREATE EXTENSION postgis" template_postgis
|
- psql -c "CREATE EXTENSION postgis" template_postgis
|
||||||
|
Loading…
Reference in New Issue
Block a user