-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (34 loc) · 1.24 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
language: generic
dist: bionic
before_install:
- fc-cache -f -v
install:
- source ./texlive/texlive_install.sh
- curl -OL http://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts && texlua ./install-getnonfreefonts && rm -f install-getnonfreefonts && getnonfreefonts --sys garamondx
# - updmap-sys
cache:
directories:
- /tmp/texlive
- $HOME/.texlive
before_script:
- cp thesismain.tex Eshwen_Bhal_thesis.tex
script:
# Texliveonfly will download packages automatically
- texliveonfly --arguments="-synctex=1 -interaction=nonstopmode" Eshwen_Bhal_thesis.tex
# Fully compile pdf with glossary
- pdflatex -synctex=1 -interaction=nonstopmode Eshwen_Bhal_thesis.tex
- biber Eshwen_Bhal_thesis
- makeglossaries Eshwen_Bhal_thesis
- pdflatex -synctex=1 -interaction=nonstopmode Eshwen_Bhal_thesis.tex
- pdflatex -synctex=1 -interaction=nonstopmode Eshwen_Bhal_thesis.tex # Compile twice to fix references
# Word count
- texcount -html -inc ./thesismain.tex > word_count.html
deploy:
provider: releases
token: $GITHUB_CI_TOKEN # Secure variable for GitHub token. Set in settings page of repository (on Travis CI)
file:
- ./Eshwen_Bhal_thesis.pdf
- ./word_count.html
skip_cleanup: true
on:
tags: true