Commit 49929e1f authored by Alexander Povel's avatar Alexander Povel
Browse files

Rework CI config

Eisvogel template is now in the Docker image; new Docker image also fixes 'svg'
parent 2e4a0b1f
# Image from dockerhub per default. Specify full path to use a different image.
# Label svg_fix deals with mismatch between InkScape 1.0 and
# svg package 2.02e. On CTAN, 2.02f is available to support InkScape 1.0,
# but current Debian TeXLive does not have it.
# Difference between `latest` and `svg_fix` images is
# running `tlmgr install svg`, aka installing the package manually
# and therefore getting the latest version (svg 2.02f).
# Remove this once Debian repos have caught up.
image: alexpovel/latex:svg_fix
image: alexpovel/latex
# Define some stages so to get rid of 'Test' as default:
stages:
- preparation
- pdf_building
get_pandoc_template:
stage: preparation
script:
# Get latest Eisvogel pandoc template release, required for pretty output from
# Markdown to PDF via Pandoc and LaTeX
- |
PANDOC_TEMPLATE_URL=$(\
curl -s https://api.github.com/repos/Wandmalfarbe/pandoc-latex-template/releases/latest | \
grep "browser_download_url.*\.tar\.gz" | \
cut -d \" -f 4
)
# Download archive
- wget $PANDOC_TEMPLATE_URL
# Unpack single file
- tar -xf Eisvogel*.tar.gz eisvogel.tex
# Change that file's suffix to .latex
- mv eisvogel.tex eisvogel.latex
# Save those artifacts for subsequent stages:
artifacts:
paths:
- eisvogel.latex
replace_git_metadata:
stage: preparation
script:
......@@ -97,6 +68,3 @@ compile_pandoc:
name: "$CI_COMMIT_REF_NAME"
paths:
- "*.pdf"
# Get the artifacts from (only) these dependency-jobs:
dependencies:
- get_pandoc_template
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment