Skip to content
This repository was archived by the owner on Jul 8, 2021. It is now read-only.

Commit 08449b1

Browse files
committed
try travis badge
1 parent 0e7654d commit 08449b1

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.travis.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
sudo: false
2+
language: node_js
3+
node_js: "8"
4+
5+
notifications:
6+
email: false
7+
8+
git:
9+
depth: 3
10+
submodules: false
11+
12+
stages:
13+
- <<: *stage
14+
name: precache
15+
- <<: *stage
16+
name: lint
17+
- <<: *stage
18+
name: test
19+
- <<: *stage
20+
name: build
21+
22+
install:
23+
- npm install
24+
25+
jobs:
26+
fast_finish: true
27+
include:
28+
# precache npm and apt dependencies
29+
- stage: precache
30+
install: npm install > /dev/null
31+
script: true
32+
addons:
33+
firefox: latest
34+
chrome: stable
35+
apt:
36+
sources:
37+
- ubuntu-toolchain-r-test
38+
# required by node-gyp to build some packages
39+
packages:
40+
- g++-4.8
41+
42+
# lint code
43+
- stage: lint
44+
install: true
45+
script: npm run lint
46+
47+
# test
48+
- &test
49+
stage: test
50+
script: npm run test
51+
52+
# check prod build
53+
- &build
54+
stage: build
55+
script: npm run build
56+
57+
cache:
58+
apt: true
59+
npm: true
60+
directories:
61+
- node_modules

0 commit comments

Comments
 (0)