-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy path.travis.yml
61 lines (49 loc) · 1.09 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
language: node_js
node_js:
- "11.12.0"
sudo: false
#cache
cache:
directories:
- "node_modules"
notifications:
# 钉钉机器人消息推送部署结果
webhooks:
urls:
- https://oapi.dingtalk.com/robot/send?access_token=${DINGDING_ACCESS_TOKEN}
on_success: change
on_failure: always
# 邮件发送部署结果通知
email:
recipients:
on_success: change
on_failure: always
# S: Build Lifecycle
before_install:
- sudo apt-get install libnotify-bin
install:
- npm install
# - gem install travis
# - travis login --pro --github-token ${GH_TOKEN}
before_script:
- export TZ='Asia/Shanghai'
- npm install -g gulp
- chmod +x _travis.sh
script:
- hexo clean && hexo g
- gulp
after_success:
# - LAST_BUILD_NUMBER=68
# - for i in $(seq 1 $LAST_BUILD_NUMBER ); do travis logs $i --delete --force ; done
after_script:
- ./_travis.sh
# E: Build LifeCycle
branches:
only:
- dev
# - global env
env:
global:
- GH_REF: github.com/shenliyang/shenliyang.github.io.git
- GITEE_REF: gitee.com/shenliyang/shenliyang.git