Skip to content

Commit

Permalink
Restructure to TDS and add Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed May 27, 2020
1 parent 3f9b1e6 commit 6dcada2
Show file tree
Hide file tree
Showing 29 changed files with 149 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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-pie
while : ; do
$engine -shell-escape -halt-on-error -interaction=nonstopmode pgf-pie-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
cd -
jobs:
include:
- env: engine=lualatex

- env: engine=pdflatex

- env: engine=xelatex

- env: engine=latex
after_script: |
cd doc/latex/pgf-pie
dvips pgf-pie-manual.dvi
ps2pdf pgf-pie-manual.ps
cd -
before_deploy: |
git ls-files | sed '/^\./d;/^ci/d' | tee FILES
echo doc/latex/pgf-pie/pgf-pie-manual.pdf >> FILES
zip -j pgf-pie.zip $(cat FILES)
deploy:
provider: releases
token: $GH_TOKEN
file_glob: true
file:
- "*.zip"
- "doc/latex/pgf-pie/pgf-pie-manual.pdf"
skip_cleanup: true
overwrite: true
on:
tags: true
condition: $engine = lualatex
10 changes: 10 additions & 0 deletions ci/texlive.profile
Original file line number 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
74 changes: 74 additions & 0 deletions ci/texlive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/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

# Update infra first
tlmgr update --self

# Install all the required packages
tlmgr install \
atbegshi \
atveryend \
bigintcalc \
bitset \
carlisle \
dvips \
ec \
epstopdf-pkg \
etexcmds \
geometry \
gettitlestring \
graphics \
graphics-def \
hycolor \
hyperref \
iftex \
infwarerr \
intcalc \
keyval \
kvdefinekeys \
kvoptions \
kvsetkeys \
latex \
latex-bin \
letltxmacro \
listings \
ltxcmds \
luaotfload \
luatex \
luatexbase \
metafont \
mfware \
pdfescape \
pdftexcmds \
pgf \
refcount \
rerunfilecheck \
texlive-scripts \
uniquecounter \
url \
xcolor \
xetex

# 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
tlmgr init-usertree --usertree `realpath ..`
export TEXMFHOME=`realpath ..`
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit 6dcada2

Please sign in to comment.