forked from graphile/worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
77 lines (72 loc) · 1.8 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
70
71
72
73
74
75
76
77
language: node_js
dist: xenial
sudo: required
matrix:
include:
- name: Postgresql 9.6 - Node.JS 10
node_js: "10"
addons:
postgresql: "9.6"
- name: Postgresql 10 - Node.JS 10
node_js: "10"
addons:
postgresql: "10"
- name: Postgresql 11 - Node.JS 10
node_js: "10"
env:
- INSTALL_PG_11=true
addons:
postgresql: "11"
- name: Postgresql 12 - Node.JS 10
node_js: "10"
env:
- INSTALL_PG_12=true
addons:
postgresql: "11"
- name: Postgresql 9.6 - Node.JS 12
node_js: "12"
addons:
postgresql: "9.6"
- name: Postgresql 10 - Node.JS 12
node_js: "12"
addons:
postgresql: "10"
- name: Postgresql 11 - Node.JS 12
node_js: "12"
env:
- INSTALL_PG_11=true
addons:
postgresql: "11"
- name: Postgresql 12 - Node.JS 12
node_js: "12"
env:
- INSTALL_PG_12=true
addons:
postgresql: "12"
before_install:
- |
if [[ "$INSTALL_PG_11" == "true" ]]; then
sudo apt-get update
sudo apt-get --yes remove postgresql\*
sudo apt-get install -y postgresql-11 postgresql-client-11
sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
sudo service postgresql restart 11
fi
if [[ "$INSTALL_PG_12" == "true" ]]; then
sudo apt-get update
sudo apt-get --yes remove postgresql\*
sudo apt-get install -y postgresql-12 postgresql-client-12
sudo cp /etc/postgresql/{9.6,12}/main/pg_hba.conf
sudo service postgresql restart 12
fi
env:
global:
- PGUSER=postgres
- PGPASSWORD=postgres
- PGPORT=5432
before_script:
- psql -c 'create database graphile_worker_test' -U postgres
script:
- psql -c "SELECT version();"
- yarn lint
- yarn test