-
Notifications
You must be signed in to change notification settings - Fork 40
/
.travis.yml
62 lines (57 loc) · 2.11 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: node_js
jobs:
include:
- node_js: '10'
addons:
postgresql: '9.6'
env:
- PGVERSION=9.6 PGUSER=postgres PGDATABASE=postgres
- node_js: '12'
addons:
postgresql: '9.6'
env:
- PGVERSION=9.6 PGUSER=postgres PGDATABASE=postgres
- node_js: '14'
addons:
postgresql: '9.6'
env:
- PGVERSION=9.6 PGUSER=postgres PGDATABASE=postgres
- node_js: '16'
addons:
postgresql: '9.6'
env:
- PGVERSION=9.6 PGUSER=postgres PGDATABASE=postgres
- node_js: '10'
addons:
postgresql: '11'
apt:
packages:
- postgresql-11
env:
- PGVERSION=11 PGUSER=postgres PGDATABASE=postgres
- node_js: '10'
addons:
postgresql: '12'
apt:
packages:
- postgresql-12
env:
- PGVERSION=12 PGUSER=postgres PGDATABASE=postgres
services:
- postgresql
before_install:
- npm install npm --global
env:
- PGUSER=postgres PGDATABASE=postgres
before_script:
- sudo bash -c "sed -i 's/^/#/' /etc/postgresql/$PGVERSION/main/pg_hba.conf"
- sudo bash -c "echo 'host all all 127.0.0.1/32 trust' >> /etc/postgresql/$PGVERSION/main/pg_hba.conf"
- 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/port = 5433/port = 5432/g' /etc/postgresql/$PGVERSION/main/postgresql.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/#wal_level = replica/wal_level = logical/g' /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo bash -c "sed -i 's/#max_wal_senders = 0/max_wal_senders = 10/g' /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo bash -c "sed -i 's/#max_replication_slots = 0/max_replication_slots = 10/g' /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo bash -c "cat /etc/postgresql/$PGVERSION/main/pg_hba.conf"
- sudo bash -c "cat /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo systemctl restart postgresql@$PGVERSION-main