forked from amcdnl/ngrx-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (52 loc) · 945 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
58
59
60
61
sudo: false
language: node_js
node_js: "8"
notifications:
email: false
git:
depth: 3
submodules: false
stages:
- <<: *stage
name: precache
- <<: *stage
name: lint
- <<: *stage
name: test
- <<: *stage
name: build
install:
- npm install
jobs:
fast_finish: true
include:
# precache npm and apt dependencies
- stage: precache
install: npm install > /dev/null
script: true
addons:
firefox: latest
chrome: stable
apt:
sources:
- ubuntu-toolchain-r-test
# required by node-gyp to build some packages
packages:
- g++-4.8
# lint code
- stage: lint
install: true
script: npm run lint
# test
- &test
stage: test
script: npm run test
# check prod build
- &build
stage: build
script: npm run build
cache:
apt: true
npm: true
directories:
- node_modules