Skip to content

Commit 6dcada2

Browse files
committed
Restructure to TDS and add Travis
1 parent 3f9b1e6 commit 6dcada2

29 files changed

+149
-0
lines changed

.travis.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
language: generic
2+
os: linux
3+
4+
install:
5+
- cd ci/
6+
- source texlive.sh
7+
- cd ..
8+
9+
cache:
10+
directories:
11+
- /tmp/texlive
12+
- $HOME/.texlive
13+
- /tmp/tlpkg
14+
15+
addons:
16+
apt:
17+
packages:
18+
- ghostscript
19+
- realpath
20+
21+
before_script:
22+
- git fetch --unshallow --tags || true
23+
24+
script: |
25+
set -e
26+
cd doc/latex/pgf-pie
27+
while : ; do
28+
$engine -shell-escape -halt-on-error -interaction=nonstopmode pgf-pie-manual.tex
29+
grep -q -E "(There were undefined references|Rerun to get (cross-references|the bars) right)" *.log || break
30+
[ "$(( thisrun=$(( thisrun + 1 )) ))" -lt 5 ] || { echo "Reruns exceeded"; exit 1; }
31+
done
32+
cd -
33+
34+
jobs:
35+
include:
36+
- env: engine=lualatex
37+
38+
- env: engine=pdflatex
39+
40+
- env: engine=xelatex
41+
42+
- env: engine=latex
43+
after_script: |
44+
cd doc/latex/pgf-pie
45+
dvips pgf-pie-manual.dvi
46+
ps2pdf pgf-pie-manual.ps
47+
cd -
48+
49+
before_deploy: |
50+
git ls-files | sed '/^\./d;/^ci/d' | tee FILES
51+
echo doc/latex/pgf-pie/pgf-pie-manual.pdf >> FILES
52+
zip -j pgf-pie.zip $(cat FILES)
53+
54+
deploy:
55+
provider: releases
56+
token: $GH_TOKEN
57+
file_glob: true
58+
file:
59+
- "*.zip"
60+
- "doc/latex/pgf-pie/pgf-pie-manual.pdf"
61+
skip_cleanup: true
62+
overwrite: true
63+
on:
64+
tags: true
65+
condition: $engine = lualatex

ci/texlive.profile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
selected_scheme scheme-infraonly
2+
TEXDIR /tmp/texlive
3+
TEXMFCONFIG ~/.texlive/texmf-config
4+
TEXMFHOME ~/texmf
5+
TEXMFLOCAL /tmp/texlive/texmf-local
6+
TEXMFSYSCONFIG /tmp/texlive/texmf-config
7+
TEXMFSYSVAR /tmp/texlive/texmf-var
8+
TEXMFVAR ~/.texlive/texmf-var
9+
option_doc 0
10+
option_src 0

ci/texlive.sh

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#!/usr/bin/env sh
2+
3+
export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
4+
5+
# Check for cached version
6+
if ! command -v texlua > /dev/null; then
7+
# Obtain TeX Live
8+
curl -LO http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
9+
tar -xzf install-tl-unx.tar.gz
10+
cd install-tl-20*
11+
12+
# Install a minimal system
13+
./install-tl --profile=../texlive.profile
14+
15+
cd ..
16+
fi
17+
18+
# Update infra first
19+
tlmgr update --self
20+
21+
# Install all the required packages
22+
tlmgr install \
23+
atbegshi \
24+
atveryend \
25+
bigintcalc \
26+
bitset \
27+
carlisle \
28+
dvips \
29+
ec \
30+
epstopdf-pkg \
31+
etexcmds \
32+
geometry \
33+
gettitlestring \
34+
graphics \
35+
graphics-def \
36+
hycolor \
37+
hyperref \
38+
iftex \
39+
infwarerr \
40+
intcalc \
41+
keyval \
42+
kvdefinekeys \
43+
kvoptions \
44+
kvsetkeys \
45+
latex \
46+
latex-bin \
47+
letltxmacro \
48+
listings \
49+
ltxcmds \
50+
luaotfload \
51+
luatex \
52+
luatexbase \
53+
metafont \
54+
mfware \
55+
pdfescape \
56+
pdftexcmds \
57+
pgf \
58+
refcount \
59+
rerunfilecheck \
60+
texlive-scripts \
61+
uniquecounter \
62+
url \
63+
xcolor \
64+
xetex
65+
66+
# Keep no backups (not required, simply makes cache bigger)
67+
tlmgr option -- autobackup 0
68+
69+
# Update the TL install but add nothing new
70+
tlmgr update --self --all --no-auto-install
71+
72+
# Install PGF
73+
tlmgr init-usertree --usertree `realpath ..`
74+
export TEXMFHOME=`realpath ..`
File renamed without changes.

0 commit comments

Comments
 (0)