Skip to content

Commit d64f936

Browse files
committed
Update .travis.yml
1 parent 69cad71 commit d64f936

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.travis.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1+
<code class="language-yum hljs http">
12
language: node_js
3+
node_js: stable
4+
5+
# S: Build Lifecycle
6+
install:
7+
- npm install
8+
9+
10+
#before_script:
11+
# - npm install -g gulp
12+
13+
script:
14+
- hexo g
15+
16+
after_script:
17+
- cd ./public
18+
- git init
19+
- git config user.name "coder-caicai"
20+
- git config user.email "bj_ccz@sina.com"
21+
- git add .
22+
- git commit -m "Update docs"
23+
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:master
24+
# E: Build LifeCycle
25+
26+
branches:
27+
only:
28+
- blog-source
29+
env:
30+
global:
31+
- GH_REF: git@github.com:coder-caicai/coder-caicai.github.io.git
32+
</code>
233

3-
node_js:
4-
5-
- 0.4
6-
7-
- 0.6

0 commit comments

Comments
 (0)