/
.travis.yml
58 lines (49 loc) · 1.74 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
sudo: required
dist: bionic
language: python
python:
- "3.8"
cache:
- pip
before_install:
- sudo apt-get update
- sudo apt-get install ditaa parallel graphviz fonts-noto-cjk plantuml texlive-latex-extra texlive-pictures texlive-latex-recommended inkscape poppler-data texlive-lang-cjk texlive-lang-chinese texlive-xetex
- dot -V || true
- ditaa -h || true
- inkscape --without-gui --version || true
install:
- pip install 'pelican'
- pip install jinja2 py3babel babel beautifulsoup4 markdown
- plantuml -version
- sudo cp tikz2svg /usr/bin/
- git clone --depth 1 https://github.com/farseerfc/opencc-bin opencc-bin
- cd opencc-bin
- sudo install -t /usr/bin src/opencc
- sudo install -t /usr/lib src/libopencc.so
- sudo install -t /usr/lib src/libopencc.so.1.0.0
- sudo install -t /usr/lib src/libopencc.so.2
- sudo mkdir -p /usr/share/opencc
- sudo cp data/*.ocd /usr/share/opencc/
- cd ..
- opencc --version
- sudo locale-gen zh_CN.UTF-8
- sudo locale-gen zh_HK.UTF-8
- sudo locale-gen en_US.UTF-8
- sudo locale-gen ja_JP.UTF-8
- locale -a
- pelican --version
script:
- git config --global user.email "$GIT_EMAIL"
- git config --global user.name "$GIT_NAME"
- git config --global push.default simple
- git clone --depth 1 https://github.com/farseerfc/pelican-plugins plugins
- git clone --depth 1 https://github.com/farseerfc/pelican-bootstrap3 theme
- git clone --depth 1 https://$GH_TOKEN@github.com/farseerfc/farseerfc.github.io output
- make html
- ./renderpdf.sh
- env SITEURL="farseerfc.me" make publish
after_success:
- cd output
- git add -A .
- git commit -m "update from travis"
- git push --quiet