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
|
|
|
|
- bash ./.texlive-minmal-installer.sh
|
|
|
|
- source ./srcfile
|
2016-05-28 14:40:23 +08:00
|
|
|
|
|
|
|
script:
|
2017-04-06 13:57:34 +08:00
|
|
|
- make html
|
2017-04-07 21:54:18 +08:00
|
|
|
- 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
|