Compare commits
11 Commits
d2b0965281
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 23c5c26472 | |||
| b27c0d1872 | |||
| b92d0a5a97 | |||
| 7fbca3031a | |||
| 12ba818631 | |||
| bc10cf8736 | |||
| 83c9218b81 | |||
| a7ec28cf5c | |||
| 9ea1970fcf | |||
| adcf470b30 | |||
| 108ef1755a |
@@ -1,2 +0,0 @@
|
||||
FROM kjarosh/latex:2025.1
|
||||
RUN tlmgr install libertinus
|
||||
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -2,10 +2,11 @@ pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
agent { dockerfile true }
|
||||
steps {
|
||||
echo 'Starting build step...'
|
||||
sh 'latexmk -pdf -outdir=out main_text.tex'
|
||||
|
||||
archiveArtifacts artifacts: 'out/main_text.pdf'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,8 +15,13 @@ pipeline {
|
||||
stage('Deploy') {
|
||||
steps{
|
||||
echo 'Starting deploy step...'
|
||||
sh 'cp assignments/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
|
||||
sh 'cp out/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
cleanup {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
\maketitle
|
||||
\tableofcontents
|
||||
\clearpage
|
||||
\subfile{src/week1.tex}
|
||||
\subfile{./src/week1.tex}
|
||||
\clearpage
|
||||
\subfile{src/week2.tex}
|
||||
\subfile{./src/week2.tex}
|
||||
\clearpage
|
||||
\subfile{src/week3.tex}
|
||||
\subfile{./src/week3.tex}
|
||||
\end{document}
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Build all directories
|
||||
subdirectory_file_name=main
|
||||
|
||||
cd assignments
|
||||
|
||||
for D in *; do
|
||||
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
|
||||
echo "Building ${D}..."
|
||||
cd "${D}"
|
||||
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
|
||||
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
|
||||
# Build main PDF
|
||||
main_file_name=main_text
|
||||
|
||||
echo "Building main PDF..."
|
||||
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
|
||||
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
|
||||
|
||||
# Clean up
|
||||
rm -rf *.aux *.log *.out *.toc
|
||||
for D in *; do
|
||||
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
|
||||
cd "${D}"
|
||||
rm -rf *.aux *.log *.out *.toc
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
Submodule src/template updated: de9419d4cc...bb25980b30
Reference in New Issue
Block a user