-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
80 lines (67 loc) · 1.28 KB
/
.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: node_js
node_js:
- 10
- 12
- lts/*
os:
- linux
- osx
- windows
cache: npm
install:
- npm install
git:
quiet: true
depth: 1
script:
- npm run jsdoc
- npm run build
after_success: npm run test && npm run coverage
# deploy:
# provider: npm
# email: tanxuan_2013@163.com
# api_key: "$NPM_TOKEN"
# skip_cleanup: true
# keep-history: true
# local-dir: lib
# on:
# branch: master
# stages:
# - test
# - doc
# - coverage
# - name: deploy
# jobs:
# include:
# - stage: test
# script:
# - node --version
# - npm --version
# - echo "Testing Start ..."
# - npm run test
# - echo "Testing End..."
# - stage: doc
# script:
# - echo "JsDoc Start ..."
# - npm run jsdoc
# - echo "JsDoc End..."
# - stage: coverage
# script:
# - echo "Coverage Start..."
# - npm run coverage
# - echo "Coverage End..."
# - stage: deploy
# script:
# - echo "Build Start..."
# - npm --version
# - npm run build
# - echo "Build End..."
# deploy:
# provider: npm
# email: tanxuan_2013@163.com
# api_key: "$NPM_TOKEN"
# skip_cleanup: true
# keep-history: true
# local-dir: lib
# on:
# branch: master