From 423173aae4dbdb1b47d9bce0de5c4b6a15118d36 Mon Sep 17 00:00:00 2001 From: Dominik Becker Date: Sun, 28 Jun 2020 23:59:37 +0200 Subject: [PATCH] #40 configured build script for GitLab CI and Azure Pipelines --- latex.azure-pipelines.yml | 4 ++-- latex.gitlab-ci.yml | 2 +- markdown.azure-pipelines.yml | 6 ++---- markdown.gitlab-ci.yml | 3 +-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/latex.azure-pipelines.yml b/latex.azure-pipelines.yml index e273160..2be1a88 100644 --- a/latex.azure-pipelines.yml +++ b/latex.azure-pipelines.yml @@ -23,8 +23,8 @@ stages: - job: latexmk container: fastexitlane/pandoc-latex:latest steps: - - script: latexmk main.tex - displayName: Execute LaTex Build + - script: ./build.sh + displayName: Run Build Script - task: PublishBuildArtifacts@1 inputs: ArtifactName: main.pdf diff --git a/latex.gitlab-ci.yml b/latex.gitlab-ci.yml index 72ed292..64e09fc 100644 --- a/latex.gitlab-ci.yml +++ b/latex.gitlab-ci.yml @@ -10,7 +10,7 @@ latexmk: - main*.pdf expire_in: 2d script: - - latexmk main.tex + - ./build.sh - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` - mv main.pdf main@$ci_commit_sha_short.pdf diff --git a/markdown.azure-pipelines.yml b/markdown.azure-pipelines.yml index b3fc7d2..2333265 100644 --- a/markdown.azure-pipelines.yml +++ b/markdown.azure-pipelines.yml @@ -22,10 +22,8 @@ stages: jobs: - job: pandoc_latexmk 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 - displayName: Convert Markdown Files to LaTex - - script: latexmk main.tex - displayName: Execute LaTex Build + - script: ./build.sh pandoc + displayName: Run Build Script with Pandoc Option - task: PublishBuildArtifacts@1 inputs: ArtifactName: main.pdf diff --git a/markdown.gitlab-ci.yml b/markdown.gitlab-ci.yml index 68de987..b7b5922 100644 --- a/markdown.gitlab-ci.yml +++ b/markdown.gitlab-ci.yml @@ -11,8 +11,7 @@ pandoc_latexmk: - main*.pdf expire_in: 2d 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 - - latexmk main.tex + - ./build.sh pandoc - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` - mv main.pdf main@$ci_commit_sha_short.pdf