-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (52 loc) · 2.07 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
57
58
59
60
61
62
63
language: generic
dist: bionic
## Uncomment the following lines if you require extra dependencies
#before_install:
# - sudo apt-get install ghostscript # If you use latex > dvips > ps2pdf
# - sudo apt-get install python-pygments # If you use the minted package
# If you use custom fonts:
# - mkdir $HOME/.fonts
# - cp -a $TRAVIS_BUILD_DIR/src/fonts/. $HOME/.fonts/
# - fc-cache -f -v
install:
- source ./texlive/texlive-install.sh
cache:
directories:
- /tmp/texlive
- $HOME/.texlive
# Change working directory so including files will work
before_script:
- sudo curl -L https://api.github.com/repos/adobe-fonts/source-serif-pro/tarball -o source-serif-pro.tar.gz
- sudo curl -L https://api.github.com/repos/adobe-fonts/source-sans-pro/tarball -o source-sans-pro.tar.gz
- tar -xf source-serif-pro.tar.gz
- tar -xf source-sans-pro.tar.gz
- fc-cache -v adobe-fonts-source-*/
script:
# Texliveonfly will download packages automatically
- texliveonfly src/latex/page-layout.tex
# You can use latexmk to automatically handle bibtex and references (recommended)
- latexmk -shell-escape -lualatex -pdf src/latex/page-layout.tex
# Texliveonfly will download packages automatically
- texliveonfly src/latex/page-layout-with-margin-notes.tex
# You can use latexmk to automatically handle bibtex and references (recommended)
- latexmk -shell-escape -lualatex -pdf src/latex/page-layout-with-margin-notes.tex
# But you could use any other compiler as well instead of latexmk. Example:
# - pdflatex main.tex
# - bibtex main
# - pdflatex main.tex
# - pdflatex main.tex # Compile twice to fix references
# You can also pass arguments to texliveonfly:
# - texliveonfly --arguments='-shell-escape' main.tex
## Uncomment the following lines to see the packages installed in travis
after_script:
- export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
- tlmgr list --only-installed | grep -oP 'i \K.+?(?=:)'
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- page-layout.pdf
- page-layout-with-margin-notes.pdf
skip_cleanup: true
on:
tags: true