gitlab CI
This commit is contained in:
parent
bc68bf37dd
commit
eff9c92d0e
5 changed files with 29 additions and 1 deletions
15
.gitlab-ci.yml
Normal file
15
.gitlab-ci.yml
Normal 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
|
||||||
13
build.sh
Executable file
13
build.sh
Executable 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
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue