forked from brianc/node-pg-copy-streams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (20 loc) · 842 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: node_js
node_js:
- '8'
- '10'
- '12'
addons:
postgresql: '9.6'
services:
- postgresql
before_install:
- npm install npm --global
env:
- PGVERSION=9.6 PGUSER=postgres PGDATABASE=postgres
before_script:
- sudo bash -c "echo 'host replication all 127.0.0.1/32 trust' >> /etc/postgresql/$PGVERSION/main/pg_hba.conf"
- sudo bash -c "sed -i 's/#wal_level = minimal/wal_level = logical/g' /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo bash -c "sed -i 's/#max_wal_senders = 0/max_wal_senders = 1/g' /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo bash -c "sed -i 's/#max_replication_slots = 0/max_replication_slots = 1/g' /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo bash -c "cat /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo service postgresql restart $PGVERSION