Merge pull request #357 from CartoDB/pg11_support

Support for PG11
This commit is contained in:
Mario de Frutos Dieguez 2019-04-12 11:53:47 +02:00 committed by GitHub
commit 6a063ca0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 21 deletions

View File

@ -1,23 +1,11 @@
language: c
group: travis_stable
language: generic
sudo: required
env:
global:
- PAGER=cat
matrix:
include:
- env: PGSQL_VERSION=9.6 POSTGIS_VERSION=2.3
- env: PGSQL_VERSION=10 POSTGIS_VERSION=2.4
before_install:
- sudo bash $TRAVIS_BUILD_DIR/scripts/ci/install_postgres.sh
- sudo make clean-all
install:
- sudo make install
matrix:
- DOCKER_IMAGE=carto/postgresql10:latest
- DOCKER_IMAGE=carto/postgresql11:latest
services:
- docker
before_install: docker pull ${DOCKER_IMAGE}
script:
- cd src/pg
- make test || { cat $TRAVIS_BUILD_DIR/src/pg/test/regression.diffs; false; }
- ./scripts/ci/docker-test.sh ${DOCKER_IMAGE}

4
scripts/ci/docker-test.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
docker run -e PGHOST=localhost -e PGPORT=5432 -v `pwd`:/srv --entrypoint="/bin/bash" ${1} /srv/scripts/ci/run_tests_docker.sh && \
docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v

View File

@ -0,0 +1,12 @@
#!/bin/bash
/etc/init.d/postgresql start
cd /srv
make clean-all
make install
cd /srv/src/pg
make test || { cat /srv/src/pg/test/regression.diffs; false; }

View File

@ -246,7 +246,7 @@ us.census.tiger.county|295
column_id|_obs_geometryscores_numgeoms_2500km_buffer
us.census.tiger.block_group|165852
us.census.tiger.census_tract|55283
us.census.tiger.zcta5|27046
us.census.tiger.zcta5|26529
us.census.tiger.county|2551
(4 rows)
_obs_geometryscores_500km_buffer_50_geoms