Run tests against Postgres 11 (#6260)
* Run tests against Postgres 11 * postgis package * use xenial travis image * port 5432
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -1,14 +1,16 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
dist: trusty
|
dist: xenial
|
||||||
services:
|
services:
|
||||||
- postgresql
|
- postgresql
|
||||||
- redis-server
|
- redis-server
|
||||||
- docker
|
- docker
|
||||||
addons:
|
addons:
|
||||||
postgresql: '9.5'
|
postgresql: '11'
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- postgresql-9.5-postgis-2.3
|
- postgresql-11
|
||||||
|
- postgresql-11-postgis-2.5
|
||||||
|
- postgresql-11-postgis-2.5-scripts
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
@@ -23,6 +25,7 @@ stage: test
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- COVERAGE_OPTION='./node_modules/.bin/nyc'
|
- COVERAGE_OPTION='./node_modules/.bin/nyc'
|
||||||
|
- PGPORT=5432
|
||||||
matrix:
|
matrix:
|
||||||
- MONGODB_VERSION=4.0.4 MONGODB_TOPOLOGY=replicaset MONGODB_STORAGE_ENGINE=wiredTiger
|
- MONGODB_VERSION=4.0.4 MONGODB_TOPOLOGY=replicaset MONGODB_STORAGE_ENGINE=wiredTiger
|
||||||
- MONGODB_VERSION=3.6.9
|
- MONGODB_VERSION=3.6.9
|
||||||
@@ -36,6 +39,10 @@ before_install:
|
|||||||
- nvm install $NODE_VERSION
|
- nvm install $NODE_VERSION
|
||||||
- nvm use $NODE_VERSION
|
- nvm use $NODE_VERSION
|
||||||
- npm install -g greenkeeper-lockfile@1
|
- 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:
|
before_script:
|
||||||
- node -e 'require("./lib/index.js")'
|
- node -e 'require("./lib/index.js")'
|
||||||
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres
|
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user