Skip to content

Commit 3197496

Browse files
author
Lenz Weber
committed
add travis.yml
1 parent 7284764 commit 3197496

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language: node_js
2+
3+
node_js:
4+
- "8"
5+
- "10"
6+
7+
addons:
8+
postgresql: "9.4"
9+
apt:
10+
packages:
11+
- postgresql-server-dev-9.4
12+
13+
env:
14+
TEST_DATABASE_URL: postgres://localhost:5432/travis
15+
PGVERSION: 9.4
16+
17+
cache: yarn
18+
19+
install:
20+
- yarn
21+
22+
before_script:
23+
- psql -c "ALTER USER travis WITH PASSWORD 'travis';"
24+
- sudo service postgresql restart
25+
26+
script:
27+
- scripts/test
28+
29+
matrix:
30+
include:
31+
- addons:
32+
apt:
33+
packages:
34+
- postgresql-10
35+
- postgresql-client-10
36+
- postgresql-server-dev-10
37+
postgresql: 10
38+
env:
39+
- PGPORT=5433
40+
- TEST_DATABASE_URL=postgres://travis:travis@localhost:5433/travis
41+
- PGVERSION=10
42+
sudo: false
43+
dist: trusty

0 commit comments

Comments
 (0)