forked from xuyuan/pgf-pie
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.