Lets have two latex yml configs

This commit is contained in:
Thorsten Wißmann 2023-05-03 14:20:44 +02:00
parent 5e9101e78d
commit 80dbbf18c6
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
compile_latex:
image: aergus/latex # the docker image by aergus https://hub.docker.com/r/aergus/latex/
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- git submodule sync
- git submodule update --init --remote
script:
# the following script requires bash
# when editing, be careful, not to use any colons since they mess up the yaml parser!
# compile all the PDFs you are interested in:
- make
- git ls-files -z -o -x '*.pdf' |xargs -0 rm -v -f # remove all untracked files (-o) except for *.pdf files
cache:
untracked: true # cache all pdf files for subsequent runs
artifacts:
name: "${CI_PROJECT_NAME}-pdfs"
when: always
expire_in: 10 yrs
untracked: true
# You can link the most recently *finished* artifacts by a badge:
#
# Link: https://gitlab.cs.fau.de/%{project_path}/-/jobs/artifacts/%{default_branch}/browse?job=compile_latex
# Badge image URL: https://gitlab.cs.fau.de/%{project_path}/badges/%{default_branch}/build.svg
#
# e.g.: https://gitlab.cs.fau.de/thorsten/coalgpartref/-/jobs/artifacts/master/browse?job=compile_latex
#
#environment:
# name: Recent PDFs
# url: https://gitlab.cs.fau.de/$CI_PROJECT_PATH/builds/$CI_BUILD_ID/artifacts/browse