Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
latex_thesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scrs
templates
latex_thesis
Commits
1e9d4a3c
Commit
1e9d4a3c
authored
2 months ago
by
Philip Bergmann
Browse files
Options
Downloads
Patches
Plain Diff
build the PDF via CI
parent
70c347cd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#68022
passed
2 months ago
Stage: lint
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+17
-1
17 additions, 1 deletion
.gitlab-ci.yml
build.sh
+29
-0
29 additions, 0 deletions
build.sh
with
46 additions
and
1 deletion
.gitlab-ci.yml
+
17
−
1
View file @
1e9d4a3c
# SPDX-FileCopyrightText: 2024 Philip Bergmann <philip.bergmann@uni-wuerzburg.de>
# SPDX-FileCopyrightText: 2024
-2025
Philip Bergmann <philip.bergmann@uni-wuerzburg.de>
# SPDX-License-Identifier: CC0-1.0
default
:
...
...
@@ -7,10 +7,26 @@ default:
-
linux
-
docker
stages
:
-
lint
-
build
# Snippet from https://reuse.software/dev/
reuse
:
stage
:
lint
image
:
name
:
fsfe/reuse:latest
entrypoint
:
[
"
"
]
script
:
-
reuse lint
build-as-is
:
stage
:
build
image
:
registry.gitlab.com/islandoftex/images/texlive:latest
script
:
-
"
./build.sh"
artifacts
:
name
:
"
$CI_PROJECT_NAME-job$CI_JOB_ID"
expire_in
:
"
5
days"
paths
:
-
"
writeup.pdf"
This diff is collapsed.
Click to expand it.
build.sh
0 → 100755
+
29
−
0
View file @
1e9d4a3c
#!/bin/sh
# Builds the document using the 'current' documentclass configuration
# SPDX-FileCopyrightText: 2025 Philip Bergmann <philip.bergmann@uni-wuerzburg.de>
# SPDX-License-Identifier: CC0-1.0
set
-eu
# Absolute path to $0's directory, resolving all symlinks in the path
script_dir
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
readonly
script_dir
cd
--
"
$script_dir
"
# Config: job name
readonly
default_jobname
=
"writeup"
readonly
jobname
=
"
${
jobname
:-
$default_jobname
}
"
# latexmk sometimes has/had(?) problems with recognozing the source has changed
# after a git checkout/... and therefore decidied no rebuild was needed
# (even though it was!).
# We solve this by always deleting the PDF before the latexmk call in build.sh
rm
-f
--
"
$jobname
.pdf"
# Increase latex max line length, this makes it easier to read the log
# from https://tex.stackexchange.com/a/52994
export
max_print_line
=
1000
export
error_line
=
254
export
half_error_line
=
238
# Run latexmk with the options specified in latexmkrc
latexmk
"
$jobname
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment