forked from jackolney/travis-ci-latex-pdf
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
42 lines (34 loc) · 1.27 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
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: cd $TRAVIS_BUILD_DIR/src/
script:
# Texliveonfly will download packages automatically
- texliveonfly main.tex
# You can use latexmk to automatically handle bibtex and references (recommended)
- latexmk -pdf main.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.+?(?=:)'