-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (42 loc) · 992 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
43
44
45
46
47
48
49
50
51
52
53
sudo: true
language: node_js
node_js: '12.16.1'
branches:
only:
- source
git:
depth: false
submodules: false
cache:
apt: true
directories:
- node_modules
before_install:
- npm uninstall hexo-renderer-marked --save
- npm install hexo-renderer-kramed --save
- npm install hexo-deployer-git --save
- npm install hexo-tag-plantuml --save
- git config --global user.name kele1997
- git config --global user.email [email protected]
- npm install hexo-cli -g
install: npm install
before_script:
- wget https://github.com/jgm/pandoc/releases/download/2.7/pandoc-2.7-1-amd64.deb
- sudo dpkg -i ./pandoc-2.7-1-amd64.deb
- sed -i '1s/graphviz/viz/' ./node_modules/hexo-graphviz/lib/render.js
script:
- hexo clean
- hexo g -d
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
local-dir: public
notifications:
email:
on_success: change
on_failure: always