#40 configured build script for GitLab CI and Azure Pipelines

This commit is contained in:
Dominik Becker 2020-06-28 23:59:37 +02:00
parent 399651ce59
commit 423173aae4
4 changed files with 6 additions and 9 deletions

View File

@ -23,8 +23,8 @@ stages:
- job: latexmk - job: latexmk
container: fastexitlane/pandoc-latex:latest container: fastexitlane/pandoc-latex:latest
steps: steps:
- script: latexmk main.tex - script: ./build.sh
displayName: Execute LaTex Build displayName: Run Build Script
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
inputs: inputs:
ArtifactName: main.pdf ArtifactName: main.pdf

View File

@ -10,7 +10,7 @@ latexmk:
- main*.pdf - main*.pdf
expire_in: 2d expire_in: 2d
script: script:
- latexmk main.tex - ./build.sh
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
- mv main.pdf main@$ci_commit_sha_short.pdf - mv main.pdf main@$ci_commit_sha_short.pdf

View File

@ -22,10 +22,8 @@ stages:
jobs: jobs:
- job: pandoc_latexmk - job: pandoc_latexmk
steps: steps:
- script: pandoc --filter pandoc-crossref --filter pandoc-citeproc -M cref=true --top-level-division=chapter --bibliography library/library.bib --biblatex -o chapter/out.tex chapter/*.md - script: ./build.sh pandoc
displayName: Convert Markdown Files to LaTex displayName: Run Build Script with Pandoc Option
- script: latexmk main.tex
displayName: Execute LaTex Build
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
inputs: inputs:
ArtifactName: main.pdf ArtifactName: main.pdf

View File

@ -11,8 +11,7 @@ pandoc_latexmk:
- main*.pdf - main*.pdf
expire_in: 2d expire_in: 2d
script: script:
- pandoc --filter pandoc-crossref --filter pandoc-citeproc -M cref=true --top-level-division=chapter --bibliography library/library.bib --biblatex -o chapter/out.tex chapter/*.md - ./build.sh pandoc
- latexmk main.tex
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
- mv main.pdf main@$ci_commit_sha_short.pdf - mv main.pdf main@$ci_commit_sha_short.pdf