Permalink
Browse files

generate pdf (fix #32)

  • Loading branch information...
1 parent 2218f84 commit 0a6cfbf80692519cea66ee5f173baba33aeab762 @seisman seisman committed Aug 11, 2016
Showing with 11 additions and 11 deletions.
  1. +3 −3 .travis-deploy.sh
  2. +8 −8 .travis.yml
View
@@ -14,6 +14,6 @@ git push "https://${GH_TOKEN}@${GH_REF}" gh-pages:gh-pages --force
# Deploy offline HTML and PDF files
mkdir build/${docdir} && cd build
mv html ${docname} && zip -r ${docdir}/${docname}.zip ${docname}
-# cp latex/${pdfname} ${docdir}/${docname}.pdf
-# ghp-import -b ${docdir} ${docdir} -m 'Update by travis automatically'
-# git push "https://${GH_TOKEN}@${GH_REF}" ${docdir}:${docdir} --force --quiet
+cp latex/${pdfname} ${docdir}/${docname}.pdf
+ghp-import -b ${docdir} ${docdir} -m 'Update by travis automatically'
+git push "https://${GH_TOKEN}@${GH_REF}" ${docdir}:${docdir} --force --quiet
View
@@ -4,22 +4,22 @@ dist: trusty
branch:
only:
- - master
+ - travis
install:
# python
- pip install -r requirements.txt
# TeXLive
- # - curl -sSL https://raw.githubusercontent.com/ustctug/mini-texlive/master/install-tl.sh -o install-tl.sh
- # - sed -i 's!http://mirrors.ustc.edu.cn/CTAN!http://ctan.sharelatex.com/tex-archive!' install-tl.sh
- # - sudo bash install-tl.sh
- # - source ~/.bash_profile
- # - export TLMGR=`which tlmgr`
- # - sudo $TLMGR update --self --all -repository http://ctan.sharelatex.com/tex-archive/systems/texlive/tlnet/
+ - curl -sSL https://raw.githubusercontent.com/ustctug/mini-texlive/master/install-tl.sh -o install-tl.sh
+ - sed -i 's!http://mirrors.ustc.edu.cn/CTAN!http://ctan.sharelatex.com/tex-archive!' install-tl.sh
+ - sudo bash install-tl.sh
+ - source ~/.bash_profile
+ - export TLMGR=`which tlmgr`
+ - sudo $TLMGR update --self --all -repository http://ctan.sharelatex.com/tex-archive/systems/texlive/tlnet/
script:
- make html
- # - make xelatexpdf
+ - make xelatexpdf
after_success:
bash ./.travis-deploy.sh

0 comments on commit 0a6cfbf

Please sign in to comment.