-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.docker.yml
56 lines (48 loc) · 1.71 KB
/
.travis.docker.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
sudo: false
cache: apt
env:
# default naming-patter: branch-commitid.PDF
- outputfilename="${TRAVIS_BRANCH}-${TRAVIS_COMMIT}"
addons:
apt:
packages:
- texlive-latex-base
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended
- texlive-latex3
- texlive-bibtex-extra
- biblatex
#- chktex
#install:
# get basic LaTeX stuff
#- sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
# get LaTeX 3
#- sudo apt-get install texlive-latex3
# get basic biblatex stuff
#- sudo apt-get install texlive-bibtex-extra biblatex
# get chktex to check our LaTeX
#- sudo apt-get install chktex
before_script:
# as somehow no biber package is available for ubuntu 12.04 via apt, let's just download it directly
- wget "http://downloads.sourceforge.net/project/biblatex-biber/biblatex-biber/0.9.9/binaries/Linux/biber-linux_x86_64.tar.gz"
- tar xzf biber-linux_x86_64.tar.gz
- export PATH=$PATH:$PWD
script:
# if we have a TAG provided, use this as filename: tag.PDF
- "echo ${#TRAVIS_TAG}; if [ ${#TRAVIS_TAG} -gt 0 ]; then outputfilename=${TRAVIS_TAG}; fi"
#- chktex -W # Print version information.
#- chktex -q -n 6 *.tex chapters.*.tex 2>/dev/null | tee lint.out
# now actually build the PDF
- pdflatex -jobname=${outputfilename} main.tex
- ./biber ${outputfilename}
- pdflatex -jobname=${outputfilename} main.tex
deploy:
provider: releases
api_key:
secure: ${github_api_key}
file:
- ${outputfilename}.pdf
skip_cleanup: true
on:
tags: true