how-to-write-makefile/.travis.yml
2020-04-26 21:38:43 -04:00

38 lines
700 B
YAML

language: python
python:
- "3.6"
sudo: required
dist: trusty
branches:
only:
- master
- dev
install:
- pip install -r requirements.txt
# Install TeXLive
- curl -sSL https://gist.githubusercontent.com/seisman/ad00252a9f03fc644146a11e6983d9c5/raw/install-tl.sh -o install-tl.sh
- sudo bash install-tl.sh
- source ~/.bash_profile
- export TLMGR=`which tlmgr`
# update texlive
- sudo $TLMGR update --self --all
- sudo $TLMGR install letltxmacro
script:
- make html
- make latexpdf
after_success:
- cp build/latex/Makefile.pdf build/html/
deploy:
provider: pages
skip_cleanup: true
github_token: ${GH_TOKEN}
local_dir: build/html
on:
branch: master