-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (58 loc) · 1.2 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
# 操作系统
os:
- "linux"
- "windows"
- "osx"
# 编程语言
language: node_js
# 语言版本
node_js:
- "10"
- "8"
- "6"
- "4"
- "0.12"
- "0.10"
# 设置脚本
before_install:
- echo "now is in before_install Phase"
install:
- echo "now is in install Phase"
before_script:
- echo "now is in before_script Phase"
- git config --global user.name 'yemiancheng-Travis-CI'
- git config --global user.email 'ymc-github@gmail.com'
script:
- echo "now is in script Phase"
- npm run test
after_success:
- echo "now is in after_success Phase"
after_failure:
- echo "now is in after_failure Phase"
before_deploy:
- echo "now is in before_deploy Phase"
deploy:
- provider: script
skip_cleanup: true
script: echo "now is in deploy Phase"
on:
branch: master
after_deploy:
- echo "now is in after_deploy Phase"
after_script:
- echo "now is in after_script Phase"
# 环境变量
env:
matrix:
- PROJECT_VERSION="1.x"
# 缓存依赖
cache: npm
# 使用插件
addons:
ssh_known_hosts:
- github.com
matrix:
fast_finish: true
allow_failures:
#allow failures for linux/win/mac nodejs<=6
- node_js: '6'