/
.travis.yml
69 lines (61 loc) · 1.66 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
63
64
65
66
67
68
69
language: node_js
node_js:
- "10"
- "12"
addons:
postgresql: "9.4"
apt:
packages:
- postgresql-server-dev-9.4
env:
PGVERSION: 9.4
TEST_DATABASE_URL: postgres://localhost:5432/graphileengine_test
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"
- createdb graphileengine_test
script:
- scripts/ci
matrix:
include:
- addons:
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-server-dev-10
postgresql: 10
services:
- postgresql
env:
- PGVERSION=10
- TEST_DATABASE_URL=postgres://localhost:5432/graphileengine_test
- LDS_TEST_DATABASE_URL=postgres://travis:travis@localhost:5432/lds_test
- PGVERSION=10
sudo: false
dist: xenial
- node_js: 12
addons:
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-server-dev-10
postgresql: 10
services:
- postgresql
env:
- PGVERSION=10
- TEST_DATABASE_URL=postgres://localhost:5432/graphileengine_test
- LDS_TEST_DATABASE_URL=postgres://travis:travis@localhost:5432/lds_test
- PGVERSION=10
- GRAPHILE_TURBO=1
sudo: false
dist: xenial