-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
33 lines (33 loc) · 1.45 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
language: node_js
node_js:
- "4" # nodejs的版本
branches:
only:
- master # 设置自动化部署的源码分支
env:
global:
secure: Vv/S3LBMayduA3RLEzlOpCHIYA6gHKWPeqMqLhFFD4ZjJvoQvw32wga3uHtPpcEoS9ZBJ0YBs0uIT4ftl3sNgKf+QULA74fmbGGRTB3AWb/rzOc6o1FeXnamhTyY8C+dBvxd6KG06Rj/54Ak30xe2W5+32TYfbVT7KOGleBSRfWlTUSIf7V3BqE42CjbNsve/MWMMk0WOa7PhnzT54xkBKfmSVqfK8i4UcrG4B5s4XUrgrcujz9RVfhDUfpPDdN13O/JGHLbK9te/2daM1o45yGrDui1jmUkvpN/g0Vh8Nr4Vl4UVy6K2yKHLCsSOVLL0d/SznAouWLUQO2YdZpDdC/lotkO0fAc3BlQ+8QZjfRJFl+8O9ptfDJIIDFjehI3u6s2o8ukgc0UhkZugCzRrvvbZsNNVhdXMIJFYXetRlavxriklQUGoCpooRr40ygZ5atCHZe8ttFsKWVJBvgHqGJ2JJjOI+tqMgbYWyNJKPWTvMeDCR26CShlP48KFgBq9ETNe2eRqCPiqeepup5pAqg0K4HusiiwMp9Se7qEFHnRNIRIPN8omDAKc/VGv4A2T8MUnhtTtEBtEYnDroqXRX+awwjc1hcEmW4V/mu5XQcligTN7uirYfmFI0gif4PvGfcoBuwv6RExnYu1qeFYSxDPyvg9tCiY/t5NdCeatXU=
before_install:
- export TZ='Asia/Shanghai' # 设置时区
- npm install -g hexo
- npm install -g hexo-cli
before_script:
# 设置github账户信息
- git config --global user.name "millylee" #设置github用户名
- git config --global user.email [email protected] #设置github用户邮箱
# github仓库操作
- sed -i'' "[email protected]:millylee/krpano.git~https://${REPO_TOKEN}:[email protected]/millylee/krpano.git~" _config.yml
# 安装依赖组件
install:
- npm install
# 执行的命令
script:
- hexo clean
- hexo generate
# 执行的成功后执行
after_success:
- hexo deploy
# 缓存npm包
cache:
directories:
- node_modules