Skip to content

Commit 8d78002

Browse files
authored
Update Travis configuration
1 parent f74c2ea commit 8d78002

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22

3+
dist: xenial
4+
35
node_js:
46
- "10"
57
- "8"
@@ -8,8 +10,18 @@ node_js:
810
services:
911
- postgresql
1012

11-
before_script:
13+
sudo: true
14+
15+
env:
16+
- CC=clang CXX=clang++
17+
18+
before_install:
1219
- psql -d postgres -c 'CREATE TABLE users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U postgres
20+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
21+
if [[ $(node -v) =~ v[1-9][0-9] ]]; then
22+
source ./ci_scripts/build.sh;
23+
fi
24+
fi
1325

1426
notifications:
1527
email:

0 commit comments

Comments
 (0)