forked from RT-Thread/rtthread-manual-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (23 loc) · 1 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
before_script:
- uname -a
- cat /etc/lsb-release
- sudo apt-get update -q
- sudo apt-get install -q ttf-arphic-gbsn00lp ttf-arphic-ukai ttf-wqy-microhei ttf-wqy-zenhei
- sudo apt-get install -q texlive-xetex texlive-latex-recommended texlive-latex-extra
- sudo apt-get install -q curl
- sudo apt-get install -q wget
- mkdir -pv ~/.cabal/bin/
- wget http://www.rt-thread.com/download/tools/pandoc.tar.gz -O ~/.cabal/bin/pandoc.tar.gz
- tar -vxf ~/.cabal/bin/pandoc.tar.gz -C ~/.cabal/bin/
- chmod +x ~/.cabal/bin/pandoc
- ~/.cabal/bin/pandoc -v
- export PATH=~/.cabal/bin:$PATH
env:
global:
- secure: "O5U/e5r6b1Pq1c3EvGGK76DlHbIFsoSJsRaD0PJ3swNdZJR5lALrR3SaLm+s\nF70uI6nQxeNUjGh0MPIMQmDO7xIuUHUsVmN95YZJq/vJTzND6JtXK6LmImvS\ncBkSyWMm5JLpmaglDwVkmu7B7/PIdpM5Pe63xYg8xwZ+ApRwcvk="
rvm:
- 1.9.3
script:
- chmod +x mkbok
- ./mkbok --lang zh --build pdf
- curl -F "file=@rtthread_manual.zh.pdf;type=application/octet-stream" http://www.rt-thread.org/download/manual/manual_upload.php