Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita45d1a5

Browse files
committed
update travis.yml
1 parent61e548a commita45d1a5

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

‎.travis.yml‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ sudo: false
22
language:node_js
33
node_js:
44
-10# use nodejs v10 LTS
5-
cache:npm
5+
cache:
6+
directories:
7+
-node_modules
68
branches:
79
only:
810
-hexo# build hexo branch only
@@ -26,17 +28,29 @@ before_install:
2628
install:
2729
-npm install
2830
-npm install hexo-deployer-git --save
31+
32+
# 设置git提交名,邮箱;替换真实token到_config.yml文件
33+
before_script:
34+
-git config user.name "coderhaotf"
35+
-git config user.email "2415156870@qq.com"
36+
# 替换同目录下的_config.yml文件中github_token字符串为travis后台刚才配置的变量,注>意此处sed命令用了双引号。单引号无效!
37+
-sed -i "s/gh_token/${GH_TOKEN}/g" ./_config.yml || exit 1
2938

3039
# 执行清缓存,生成网页操作
3140
script:
3241
-hexo clean
3342
-hexo generate
43+
-hexo deploy
3444

3545
# 设置git提交名,邮箱;替换真实token到_config.yml文件,最后depoy部署
3646
after_script:
37-
-git config user.name "coderhaotf"
38-
-git config user.email "2415156870@qq.com"
39-
# 替换同目录下的_config.yml文件中gh_token字符串为travis后台刚才配置的变量,注意此处sed命令用了双引号。单引号无效!
40-
-sed -i "s/gh_token/${GH_TOKEN}/g" ./_config.yml
41-
-hexo deploy
47+
48+
# configure notifications (email, IRC, campfire etc)
49+
# please update this section to your needs!
50+
# https://docs.travis-ci.com/user/notifications/
51+
notifications:
52+
email:
53+
-2415156870@qq.com
54+
on_success:change
55+
on_failure:always
4256
# End: Build LifeCycle

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp