Skip to content

Commit

Permalink
Run tests against Postgres 11 (parse-community#6260)
Browse files Browse the repository at this point in the history
* Run tests against Postgres 11

* postgis package

* use xenial travis image

* port 5432
  • Loading branch information
dplewis authored Dec 4, 2019
1 parent 3e2003e commit 87f0196
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 87f0196

Please sign in to comment.