From 87f0196f71a0c457d53f96d0561491e7ccb7ed3f Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Wed, 4 Dec 2019 12:24:19 -0600 Subject: [PATCH] Run tests against Postgres 11 (#6260) * Run tests against Postgres 11 * postgis package * use xenial travis image * port 5432 --- .travis.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 39b9f90737..1c2d8f61fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,16 @@ language: node_js -dist: trusty +dist: xenial services: - postgresql - redis-server - docker addons: - postgresql: '9.5' + postgresql: '11' apt: packages: - - postgresql-9.5-postgis-2.3 + - postgresql-11 + - postgresql-11-postgis-2.5 + - postgresql-11-postgis-2.5-scripts branches: only: - master @@ -23,6 +25,7 @@ stage: test env: global: - COVERAGE_OPTION='./node_modules/.bin/nyc' + - PGPORT=5432 matrix: - MONGODB_VERSION=4.0.4 MONGODB_TOPOLOGY=replicaset MONGODB_STORAGE_ENGINE=wiredTiger - MONGODB_VERSION=3.6.9 @@ -36,6 +39,10 @@ before_install: - nvm install $NODE_VERSION - nvm use $NODE_VERSION - npm install -g greenkeeper-lockfile@1 +- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf +- sudo cp /etc/postgresql/{10,11}/main/pg_hba.conf +- sudo service postgresql stop +- sudo service postgresql start 11 before_script: - node -e 'require("./lib/index.js")' - psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres