Skip to content

Commit

Permalink
Continuous integration
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed Jan 1, 2019
1 parent a16522b commit 17d9dc9
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,64 @@
language: generic

install:
- cd ci/
- source texlive.sh
- cd ..

cache:
directories:
- /tmp/texlive
- $HOME/.texlive

addons:
apt:
packages:
- ghostscript

matrix:
include:
- env: version=dvipdfm
script:
- cd doc/generic/pgf/version-for-dvipdfm/en
- make latex="latex --interaction=nonstopmode"

- env: version=dvidfmx
script:
- cd doc/generic/pgf/version-for-dvipdfmx/en
- make latex="latex -shell-escape --interaction=nonstopmode"

- env: version=dvips
script:
- cd doc/generic/pgf/version-for-dvips/en
- make latex="latex --interaction=nonstopmode"

- env: version=dvisvgm
script:
- cd doc/generic/pgf/version-for-dvisvgm/en
- touch pgfmanual.toc
- make latex="lualatex --output-format=dvi --interaction=nonstopmode"

- env: version=luatex
script:
- cd doc/generic/pgf/version-for-luatex/en
- make latex="lualatex --interaction=nonstopmode"

- env: version=pdftex
script:
- cd doc/generic/pgf/version-for-pdftex/en
- make latex="pdflatex --interaction=nonstopmode"

# - env: version=tex4ht
# script:
# - cd doc/generic/pgf/version-for-tex4ht/en
# - make

# - env: version=vtex
# script:
# - cd doc/generic/pgf/version-for-vtex/en
# - make

- env: version=xetex
script:
- cd doc/generic/pgf/version-for-xetex/en
- make latex="xelatex --no-pdf --interaction=nonstopmode"
10 changes: 10 additions & 0 deletions ci/texlive.profile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,10 @@
selected_scheme scheme-infraonly
TEXDIR /tmp/texlive
TEXMFCONFIG ~/.texlive/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL /tmp/texlive/texmf-local
TEXMFSYSCONFIG /tmp/texlive/texmf-config
TEXMFSYSVAR /tmp/texlive/texmf-var
TEXMFVAR ~/.texlive/texmf-var
option_doc 0
option_src 0
68 changes: 68 additions & 0 deletions ci/texlive.sh
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/usr/bin/env sh

export PATH=/tmp/texlive/bin/x86_64-linux:$PATH

# Check for cached version
if ! command -v texlua > /dev/null; then
# Obtain TeX Live
curl -LO http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*

# Install a minimal system
./install-tl --profile=../texlive.profile

cd ..
fi

# Install all the required packages
tlmgr install \
amsfonts \
amsmath \
courier \
ctablestack \
dvipdfmx \
dvips \
dvisvgm \
ec \
fp \
geometry \
graphics \
graphics-def \
hyperref \
ifluatex \
ifxetex \
latex \
latex-bin \
listings \
lm \
luainputenc \
luatex \
luatexbase \
makeindex \
metafont \
mfware \
ms \
oberdiek \
psnfss \
symbol \
tex4ht \
texlive-scripts \
times \
todonotes \
tools \
url \
xcolor \
xetex \
xkeyval \
zapfding

# Keep no backups (not required, simply makes cache bigger)
tlmgr option -- autobackup 0

# Update the TL install but add nothing new
tlmgr update --self --all --no-auto-install

# Install PGF
cp -vr ../tex/* /tmp/texlive/texmf-dist/tex/
mktexlsr
1 change: 1 addition & 0 deletions scripts/pgf/Makefile.pgf_release
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ $(ZIP): FORCE
make -C /tmp/pgf/doc/generic/pgf/version-for-pdftex/en clean make -C /tmp/pgf/doc/generic/pgf/version-for-pdftex/en clean
# now restructure to get TDS: # now restructure to get TDS:
cd /tmp/pgf; \ cd /tmp/pgf; \
rm -rf ci; \
rm -rf experiments; \ rm -rf experiments; \
rm -rf scripts; \ rm -rf scripts; \
rm README; \ rm README; \
Expand Down

0 comments on commit 17d9dc9

Please sign in to comment.