forked from nostream/sdcamp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
27 lines (24 loc) · 998 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
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:
- chmod +x mkbok
- ./mkbok --lang zh --build pdf
env:
global:
- secure: "qkE5/TVKQV/+xBEW5M7ayWMMtFwhu44rQb9zh3n0LH4CkVb+b748lOuW3htc\nXfnXU8aGzOsQBeCJZQstfzsHFPkll+xfhk38cFqNQp7tpMo/AOZIkqd2AIUL\n0bgaFD+1kFAxKTu02m11xzkDNw6FuHMVvoMEQu/fo115i2YmWHo="
after_script:
# - ls -al *.pdf
- env
# - echo $GITHUB_TOKEN
# - ls -al
# change the name to indicate it is snapshot
# - git config --global github.upload-script-token $GITHUB_TOKEN
- ./github-upload.rb sdcamp.zh.pdf larrycai/sdcamp --description "generated by travis-ci, $TRAVIS_JOB_ID" --force --name sdcamp.zh.snapshot.pdf --skip-ssl-verification -t $GITHUB_TOKEN