diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc18ff1..c82ed4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ image: blang/latex build: script: - - latexmk -pdf + - bash build_all.sh artifacts: paths: - - "*.pdf" + - "build/*.pdf" diff --git a/build_all.sh b/build_all.sh new file mode 100755 index 0000000..2fcac3b --- /dev/null +++ b/build_all.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +mkdir -p output +find ./* -maxdepth 1 -mindepth 1 -type f -name "*.tex" \ + -not -name "settings.tex" \ + -not -name "SSxx Klausurvorlage.tex" \ + -not -name "klausuren-Settings-utf8.tex" \ + -print0 | \ + xargs -0 -P 4 -I [] bash -c 'cd "$(dirname "[]")"; latexmk -pdf -outdir=../output "$(basename "[]")";'