Skip to content

Commit afe49cb

Browse files
authored
Run tests against Postgres 11 (#6260)
* Run tests against Postgres 11 * postgis package * use xenial travis image * port 5432
1 parent 6db040b commit afe49cb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
language: node_js
2-
dist: trusty
2+
dist: xenial
33
services:
44
- postgresql
55
- redis-server
66
- docker
77
addons:
8-
postgresql: '9.5'
8+
postgresql: '11'
99
apt:
1010
packages:
11-
- postgresql-9.5-postgis-2.3
11+
- postgresql-11
12+
- postgresql-11-postgis-2.5
13+
- postgresql-11-postgis-2.5-scripts
1214
branches:
1315
only:
1416
- master
@@ -23,6 +25,7 @@ stage: test
2325
env:
2426
global:
2527
- COVERAGE_OPTION='./node_modules/.bin/nyc'
28+
- PGPORT=5432
2629
matrix:
2730
- MONGODB_VERSION=4.0.4 MONGODB_TOPOLOGY=replicaset MONGODB_STORAGE_ENGINE=wiredTiger
2831
- MONGODB_VERSION=3.6.9
@@ -36,6 +39,10 @@ before_install:
3639
- nvm install $NODE_VERSION
3740
- nvm use $NODE_VERSION
3841
- npm install -g greenkeeper-lockfile@1
42+
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
43+
- sudo cp /etc/postgresql/{10,11}/main/pg_hba.conf
44+
- sudo service postgresql stop
45+
- sudo service postgresql start 11
3946
before_script:
4047
- node -e 'require("./lib/index.js")'
4148
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres

0 commit comments

Comments
 (0)