forked from brainhack-princeton/handbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (29 loc) · 1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dist: xenial
language: python
python:
- "3.6"
cache:
- apt
install:
- sudo apt-get install texlive-latex-recommended texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra latexmk librsvg2-bin plantuml
# plantuml is really outdated, smuggle in the latest upstream
- sudo wget -O /usr/share/plantuml/plantuml.jar http://sourceforge.net/projects/plantuml/files/plantuml.jar/download
- pip install -r requirements.txt
- pip install -e .
script:
# patch the planuml config, to prevent PDF conversion (works around a bug in the
# sphinx extension)
- sed -i -e "s/plantuml_latex_output_format = 'pdf'/plantuml_latex_output_format = 'png'/g" docs/conf.py
# - make doctest
- make html
- make latexpdf
# Tell GitHub not to use jekyll to compile the docs
- touch docs/_build/html/.nojekyll
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: master
local_dir: docs/_build/html/