forked from nirgn975/Expenses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (47 loc) · 882 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
51
52
53
54
55
56
57
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
- "6"
- "7"
cache:
npm: true
directories:
- client/node_modules
- server/node_modules
env:
global:
- FACEBOOK_APP_ID=12345
- FACEBOOK_APP_SECRET=a1b2c3d4e5f6g7
services:
- mongodb
before_install:
- npm install -g npm@latest local-web-server codecov
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- cd server && npm install
- cd ../client && npm install
script:
# Server
- cd ../server
- npm run lint
- npm run test
# Client
- cd ../client
- npm run lint
- npm run test
- ng build --prod --aot
- cd dist && ws --port 4200&
- npm run e2e
after_script:
- cd ../server && npm run coverage
- codecov
- nsp check