-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
43 lines (36 loc) · 1.15 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
language: node_js
sudo: false
node_js:
- 8.11.1
branches:
only:
- hexo
git:
submodules: false
before_install:
- openssl aes-256-cbc -K $encrypted_a4dcfa5f2d9a_key -iv $encrypted_a4dcfa5f2d9a_iv
-in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- eval $(ssh-agent)
- ssh-add ~/.ssh/id_rsa
- cp .travis/ssh_config ~/.ssh/config
- git config --global user.name 'Richard-Cao'
- git config --global user.email '[email protected]'
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- ssh-agent -k
install:
- travis_wait npm install hexo-cli -g
- travis_wait npm install
- git submodule init
- git submodule update
- cd themes/next
- git clone https://github.com/theme-next/theme-next-canvas-nest source/lib/canvas-nest
- git clone https://github.com/theme-next/theme-next-han source/lib/Han
- git clone https://github.com/theme-next/theme-next-needmoreshare2 source/lib/needsharebutton
- git clone https://github.com/theme-next/theme-next-pangu.git source/lib/pangu
- git clone https://github.com/theme-next/theme-next-pace source/lib/pace
- cd $HOME/build/Richard-Cao/Richard-Cao.github.io
script:
- hexo clean
- hexo g
- hexo d