Skip to content

Instantly share code, notes, and snippets.

@papachristoumarios
Created August 14, 2019 11:31
Show Gist options
  • Save papachristoumarios/d438c20a97137ae76b44cc2ff2cffecb to your computer and use it in GitHub Desktop.
Save papachristoumarios/d438c20a97137ae76b44cc2ff2cffecb to your computer and use it in GitHub Desktop.
Travis auto build LaTeX PDFs
sudo: required
dist: trusty
before_install:
- sudo apt-get -qq update && sudo apt-get install -y --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra dvipng texlive-latex-recommended
script:
- pdflatex -interaction=nonstopmode -halt-on-error -output-directory cv/ cv/cv.tex
- git config --global user.email "papachristoumarios@gmail.com"
- git config --global user.name "Marios Papachristou"
- git commit -am 'Auto build CV'
# Setup GH_TOKEN as an environment variable for Travis CI from Github to match your API Token
- git push -q https://papachristoumarios:$GH_TOKEN@github.com/papachristoumarios/papachristoumarios.github.io.git HEAD:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment