forked from xuyuan/pgf-umlsd
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
66 lines (55 loc) · 1.31 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
64
65
66
language: generic
os: linux
install:
- cd ci/
- source texlive.sh
- cd ..
cache:
directories:
- /tmp/texlive
- $HOME/.texlive
- /tmp/tlpkg
addons:
apt:
packages:
- ghostscript
- realpath
before_script:
- git fetch --unshallow --tags || true
script: |
set -e
cd doc/latex/pgf-umlsd
while : ; do
$engine -shell-escape -halt-on-error -interaction=nonstopmode pgf-umlsd-manual.tex
grep -q -E "(There were undefined references|Rerun to get (cross-references|the bars) right)" *.log || break
[ "$(( thisrun=$(( thisrun + 1 )) ))" -lt 5 ] || { echo "Reruns exceeded"; exit 1; }
done
if [ "$engine" = "latex" ]; then
dvips pgf-umlsd-manual.dvi
ps2pdf pgf-umlsd-manual.ps
fi
cd -
after_success: |
git ls-files | sed '/^\./d;/^ci/d' | tee FILES
echo doc/latex/pgf-umlsd/pgf-umlsd-manual.pdf | tee -a FILES
tar --xform='s$\(doc\|tex\)/latex/pgf-umlsd/$$g' \
--xform='s$^$pgf-umlsd/$g' \
-cvf pgf-umlsd.tar.gz $(cat FILES)
jobs:
include:
- env: engine=lualatex
- env: engine=pdflatex
- env: engine=xelatex
- env: engine=latex
deploy:
provider: releases
token: $GH_TOKEN
file_glob: true
file:
- "*.zip"
- "doc/latex/pgf-umlsd/pgf-umlsd-manual.pdf"
skip_cleanup: true
overwrite: true
on:
tags: true
condition: $engine = lualatex