-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (42 loc) · 855 Bytes
/
.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
sudo: required
dist: trusty
language: node_js
node_js:
- "8"
env:
- CXX=g++-4.8
services:
- postgresql
- rabbitmq
- redis
addons:
postgresql: "9.6"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- postgresql-9.6-postgis-2.3
before_install:
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- cd client
- npm i
- cd ../server
- npm i
before_script:
- psql -c 'create database dev;' -U postgres
- psql -c 'create extension postgis;' -d dev -U postgres
after_script:
- cd client
- npm run build
- npm test
- cd ../server
- npm test
- npm run codeclimate
- npm run coveralls