mirror of
https://github.com/maplibre/martin.git
synced 2024-12-20 05:11:57 +03:00
try to install postgresql-9.6-postgis-2.4 using sudo
This commit is contained in:
parent
d6859cdfd3
commit
5e66aec98c
15
.travis.yml
15
.travis.yml
@ -2,7 +2,7 @@ language: rust
|
|||||||
cache: cargo
|
cache: cargo
|
||||||
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: false
|
sudo: required
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
@ -11,16 +11,19 @@ branches:
|
|||||||
services:
|
services:
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
# addons:
|
addons:
|
||||||
# postgresql: 9.6
|
postgresql: 9.6
|
||||||
# apt:
|
# apt:
|
||||||
# packages:
|
# packages:
|
||||||
# - postgresql-9.6-postgis-2.4
|
# - postgresql-9.6-postgis-2.4
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DATABASE_URL=postgres://postgres@localhost/test
|
- DATABASE_URL=postgres://postgres@localhost/test
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- sudo apt-get -qq update
|
||||||
|
- sudo apt-cache search postgis
|
||||||
|
- sudo apt-get install -y postgresql-9.6-postgis-2.4
|
||||||
- psql -U postgres -c 'create database test'
|
- psql -U postgres -c 'create database test'
|
||||||
- psql -U postgres -d test -c 'create extension postgis'
|
- psql -U postgres -d test -c 'create extension postgis'
|
||||||
- psql -U postgres -d test -f fixtures/tilebbox.sql
|
- psql -U postgres -d test -f fixtures/tilebbox.sql
|
||||||
|
Loading…
Reference in New Issue
Block a user