Merge pull request #382 from francbartoli/fix-travis
Fix travis with latest postgis version
This commit is contained in:
+12
-3
@@ -8,16 +8,17 @@ env:
|
||||
- PYGEOAPI_CONFIG="$(pwd)/pygeoapi-config.yml"
|
||||
- CPLUS_INCLUDE_PATH=/usr/include/gdal
|
||||
- C_INCLUDE_PATH=/usr/include/gdal
|
||||
- DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
python:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
|
||||
services:
|
||||
- postgresql
|
||||
- docker
|
||||
|
||||
addons:
|
||||
postgresql: "10"
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: 'ppa:ubuntugis/ubuntugis-unstable'
|
||||
@@ -27,12 +28,16 @@ addons:
|
||||
- libgdal-dev
|
||||
- libsqlite3-mod-spatialite
|
||||
- python-pyspatialite
|
||||
- postgresql-10-postgis-2.4
|
||||
- mongodb-org
|
||||
|
||||
before_install:
|
||||
- sudo apt-get install -qq build-essential python3-dev python3-setuptools python-all python3-all python-setuptools python3-pip
|
||||
- sudo service postgresql stop
|
||||
- sudo apt-get remove -yq 'postgresql-*'
|
||||
- sudo apt autoremove
|
||||
- sudo apt-get -qq update
|
||||
- sudo apt-get install -qq build-essential tzdata python3-dev python3-setuptools python-all python3-all python-setuptools python3-pip
|
||||
- sudo apt-get install -y devscripts fakeroot debhelper
|
||||
- sudo apt-get install -y postgresql-10-postgis-3
|
||||
|
||||
# install Elasticsearch 7
|
||||
- curl -s -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-amd64.deb
|
||||
@@ -46,6 +51,10 @@ before_install:
|
||||
- sudo systemctl enable mongod
|
||||
- sudo systemctl start mongod
|
||||
- sudo systemctl status mongod
|
||||
# start postgresql installed from ubuntugis postgis
|
||||
- sudo systemctl enable postgresql
|
||||
- sudo systemctl start postgresql
|
||||
- sudo systemctl status postgresql
|
||||
|
||||
install:
|
||||
# follow GDAL installed version for Python bindings
|
||||
|
||||
Reference in New Issue
Block a user