forked from graphile/graphile-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 1.09 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
language: node_js
node_js:
- "8"
- "10"
addons:
postgresql: "9.4"
apt:
packages:
- postgresql-server-dev-9.4
env:
TEST_DATABASE_URL: postgres://localhost:5432/travis
PGVERSION: 9.4
cache: yarn
install:
- yarn
- lerna bootstrap
before_script:
- psql -c "ALTER USER travis WITH PASSWORD 'travis';"
- sudo bash -c "echo -e 'wal_level = logical\nmax_replication_slots = 10\nmax_wal_senders = 10' >> /etc/postgresql/$PGVERSION/main/postgresql.conf"
- sudo service postgresql restart
- git clone https://github.com/eulerto/wal2json.git
- sudo bash -c "cd wal2json && USE_PGXS=1 make && USE_PGXS=1 make install"
script:
- scripts/ci
matrix:
include:
- addons:
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-server-dev-10
postgresql: 10
env:
- PGPORT=5433
- TEST_DATABASE_URL=postgres://travis:travis@localhost:5433/travis
- LDS_TEST_DATABASE_URL=postgres://travis:travis@localhost:5433/lds_test
- PGVERSION=10
sudo: false
dist: trusty