-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
38 lines (35 loc) · 1.23 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
language: ruby
before_script:
- sudo apt-get install pandoc
# here you can check os environment, it is ubuntu natty
- uname -a
- lsb_release -a
- pandoc -v
- sudo apt-get install ttf-arphic-gbsn00lp ttf-arphic-ukai ttf-wqy-microhei ttf-wqy-zenhei
- sudo apt-get install texlive-xetex texlive-latex-recommended texlive-latex-extra
rvm:
- 1.9.3
script:
- git checkout gh-pages
- chmod +x mkbok
- ./mkbok
after_script:
- ls -al *.pdf
- pdfv1=`git config remote.origin.url`
- pdfv2=${pdfv1#*github.com/}
- pdfname=${pdfv2%/*}_LASO.zh.pdf
- echo $pdfname
- cp id_rsa_mkbok ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- cat ~/.ssh/known_hosts
- echo "repo.or.cz,195.113.20.142 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAs7JJacVNc1wk/6RZqMHin5RwR/LdIcMGGeG6WG4Sl/wETY9KYUVd126Yb2MV7vBT/8dW0iE6u6+sRVM3Xn5MG9K2PvQ57SbIQ53FvR4qBCqYkSn5sKs2wt9GpXh2MFN5TuXth2d1BABSR2a1u461K8SKbhclPVeFCeligaI4lGc=" >> ~/.ssh/known_hosts
- cat ~/.ssh/known_hosts
- git clone ssh://mkbok@repo.or.cz/srv/git/mkbok.git mkbok.pdf
- cd mkbok.pdf
- ls -al
- cp ../LASO.zh.pdf $pdfname
- git add $pdfname
- git config user.name "Li Ming"
- git config user.email "limingth@gmail.com"
- git commit -am "add file"
- git push origin master