forked from vEnhance/napkin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (51 loc) · 1.14 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
os: linux
dist: jammy
language: generic
cache: apt
addons:
apt:
packages:
- wget
- freeglut3
- ghostscript
- tree
- texlive-latex-base
- texlive-latex-recommended
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-science
- texlive-bibtex-extra
- asymptote
- lmodern
- latexmk
- biber
before_script:
- mkdir asy
script:
- pdflatex -interaction=nonstopmode Napkin.tex
- biber Napkin
- asy -nosafe -o asy/ asy/Napkin-*.asy -v
- pdflatex -interaction=nonstopmode Napkin.tex
- pdflatex -interaction=nonstopmode Napkin.tex
- pdflatex -interaction=nonstopmode Napkin.tex
# ...
# latexmk -pdf -halt-on-error -quiet -interaction=batchmode
before_deploy:
- mkdir dist
- mv Napkin.pdf dist/
- mv Napkin.log dist/
- mkdir dist/asy/
- mv asy/*.pdf dist/asy/
- cd dist/
- ls
- tree -H '.' -I "index.html" -D --charset utf-8 -T "An Infinitely Large Napkin" > index.html
- cd ../
deploy:
provider: pages:git
token: $GITHUB_TOKEN
edge: true # opt in to dpl v2
local_dir: dist/
keep_history: false
verbose: true
on:
branch: main