how-to-write-makefile/.travis.yml

38 lines
700 B
YAML
Raw Normal View History

2016-05-28 14:40:23 +08:00
language: python
python:
2017-04-06 13:57:34 +08:00
- "3.6"
2016-05-28 14:40:23 +08:00
sudo: required
dist: trusty
branches:
only:
2016-05-28 14:52:25 +08:00
- master
2017-04-06 13:57:34 +08:00
- dev
2016-05-28 14:40:23 +08:00
install:
2017-04-06 13:57:34 +08:00
- pip install -r requirements.txt
2017-06-17 15:08:26 +08:00
# 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`
2020-02-06 12:05:48 -05:00
- sudo $TMLGR install letltxmacro
2017-06-17 15:08:26 +08:00
# update texlive
2019-06-01 13:08:45 -04:00
- sudo $TLMGR update --self --all
2016-05-28 14:40:23 +08:00
script:
2017-04-06 13:57:34 +08:00
- make html
- make latexpdf
2016-05-28 14:40:23 +08:00
after_success:
2017-04-06 13:57:34 +08:00
- cp build/latex/Makefile.pdf build/html/
deploy:
provider: pages
skip_cleanup: true
github_token: ${GH_TOKEN}
local_dir: build/html
on:
branch: master