gitlab CI

This commit is contained in:
CDaut 2023-01-06 12:41:43 +01:00 committed by CDaut
parent bc68bf37dd
commit eff9c92d0e
5 changed files with 29 additions and 1 deletions

15
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,15 @@
# Full texlive/ctan, but just "moderately" large (~7 GB)
image: texlive/texlive:latest
stages:
- build
compile-tuts:
stage: build
script:
- bash build.sh
artifacts:
paths:
- build
tags:
- latex

View file

@ -15,7 +15,7 @@
It is well known fact in the scientific commuinity that geologists frequently It is well known fact in the scientific commuinity that geologists frequently
lick rocks to determine their mineral composition. With this paper we aim lick rocks to determine their mineral composition. With this paper we aim
to formalize this procedure and establish a baseline scale to enable to formalize this procedure and establish a baseline scale to enable
geologists to classify their favourite rocks on this culinographic scale. geologists to classify their favourite rocks on this culinographic scale.
\end{psummary} \end{psummary}
\vspace{2mm} \vspace{2mm}
] ]

13
build.sh Executable file
View file

@ -0,0 +1,13 @@
for project in "./"*/; do
if [ -f $project"main.tex" ]; then
cd $project
# build twice to ensure TOC is built
lualatex "main.tex"
lualatex "main.tex"
rm ./*.log ./*.out ./*.aux ./*.run.xml ./*.bcf ./*.tex.bbl ./*.tex.blg
cd ..
filename=$(echo $project | awk -F '/' '{print $2}')
mv $project"main.pdf" "./build/"$filename".pdf"
fi
done