Select Git revision
.gitlab-ci.yml
.gitlab-ci.yml 2.10 KiB
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/LaTeX.gitlab-ci.yml
---
#variables:
# Feel free to choose the image that suits you best.
# blang/latex:latest ... Former image used in this template. No longer maintained by author.
# listx/texlive:2020 ... The default, referring to TexLive 2020. Current at least to 2021-02-02.
# Additional alternatives with high Docker pull counts:
# thomasweise/docker-texlive-full
# thomasweise/texlive
# adnrv/texlive
# LATEX_IMAGE: listx/texlive:2020
build-windows:
stage: build
tags:
- windows
- latex
script:
# prepare all possible variants of the thesis
- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {SEM}' | Set-Content ./Example_SEM.tex
- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {PA}' | Set-Content ./Example_PA.tex
- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {BA}' | Set-Content ./Example_BA.tex
- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {MA}' | Set-Content ./Example_MA.tex
- (Get-Content ./Example.tex -Raw) -Replace 'ThesisType.=.{\w*}', 'ThesisType = {PHD}' | Set-Content ./Example_PHD.tex
# remove Example.tex - no need to compile it now
- rm ./Example.tex
# compile all .tex files
- latexmk -pdf
artifacts:
paths:
- "*.pdf"
#release:
# stage: release
# needs:
# - job: build-windows
# artifacts: true
#release:
# name: 'Template and compiled examples $CI_COMMIT_SHORT_SHA'
# description: 'Created using the release-cli'
# tag_name: '$CI_COMMIT_SHORT_SHA'
# assets:
# links:
# - name: 'Compiled example thesis'
# https://example.com/<namespace>/<project>/-/jobs/artifacts/<ref>/download?job=<job_name>
#
# url: 'https://git.ift.tuwien.ac.at/lab/pub/ift-latex/-/jobs/${GE_JOB_ID}/artifacts/file/*.pdf'