-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 984 Bytes
/
.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
language: node_js
node_js:
- "8.11.1"
before_install:
- npm install -g npm@4
- git config --global push.default matching
- git config --global user.name "songzheng45"
- git config --global user.email "[email protected]"
install:
- npm rebuild node-sass
- npm install hexo-cli -g
- npm install hexo --save
- npm install
- npm install hexo-generator-feed --save
- npm install hexo-deployer-git --save
- npm install hexo-renderer-ejs2 --save
- npm install hexo-renderer-stylus --save
- npm install hexo-renderer-marked --save
- npm install hexo-renderer-sass --save
- npm install hexo-algolia --save
script:
- hexo clean
- hexo generate
- hexo algolia
after_success:
- cd ./public
- git init
- git add --all .
- git commit -m "Travis CI Auto Builder"
- git push --quiet --force https://[email protected]/songzheng45/xingzheng.me.git master:gh-pages
branches:
only:
- master
#cache:
#directories:
#- node_modules