-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
8 lines (8 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
dist: trusty
before_install:
- "sudo apt-get update && sudo apt-get install --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra texlive-math-extra texlive-latex-recommended dvipng texlive-generic-recommended texlive-pictures texlive-science texlive-luatex texlive-xetex texlive-latex-base texlive-publishers texlive-font-utils fonts-lmodern pgf"
script:
- curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh; chmod +x dropbox_uploader.sh; echo "OAUTH_ACCESS_TOKEN=$DRPBX" >> ~/.dropbox_uploader
- files=`git show --pretty="" --name-only | grep -E '.tex$' | grep -Ev '^(mathsym|mathdoc|preview|theorem)'`
- for file in $files;do cd $(dirname $file);for x in {1..2};do lualatex ${file##*/};done;cd ..;upl=${file//".tex"/".pdf"};./dropbox_uploader.sh upload $upl ${BRANCH_NAME}/$upl;wait $! & done
- export DRPBX=0000000000000000000000000000000000000000000000000000000000000000; echo "0000000000000000000$DRPBX" >| ~/.dropbox_uploader