From e7d115992c926cee08eb20d636a1849434f32529 Mon Sep 17 00:00:00 2001 From: Dominik Becker Date: Sun, 24 May 2020 15:26:08 +0200 Subject: [PATCH] #41 moved CI/CD config for pandoc to seperate file --- .gitlab-ci.yml | 12 ------------ markdown.gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 markdown.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d723f60..f9d5099 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,18 +14,6 @@ latexmk: - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` - mv main.pdf main@$ci_commit_sha_short.pdf -# pandoc_latexmk: -# image: fastexitlane/pandoc-latex:latest -# stage: build -# artifacts: -# paths: -# - 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 -# - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` -# - mv main.pdf main@$ci_commit_sha_short.pdf hunspell_chapters: image: fastexitlane/hunspell:latest diff --git a/markdown.gitlab-ci.yml b/markdown.gitlab-ci.yml new file mode 100644 index 0000000..6bbf558 --- /dev/null +++ b/markdown.gitlab-ci.yml @@ -0,0 +1,36 @@ +stages: + - test + - build + +pandoc_latexmk: + image: fastexitlane/pandoc-latex:latest + stage: build + artifacts: + paths: + - 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 + - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA` + - mv main.pdf main@$ci_commit_sha_short.pdf + + hunspell_chapters: + image: fastexitlane/hunspell:latest + stage: test + script: + - export HUNSPELL_FINDINGS=`for filename in chapter/*.md; do hunspell -l -d de_DE_neu,en_US -p ./.hunspellignore $filename; done | sort | uniq` + - echo $HUNSPELL_FINDINGS + - test "$HUNSPELL_FINDINGS" == "" + allow_failure: true + + + hunspell_appendix: + image: fastexitlane/hunspell:latest + stage: test + script: + - export HUNSPELL_FINDINGS=`for filename in appendix/*.tex; do hunspell -l -d de_DE_neu,en_US -p ./.hunspellignore -t $filename; done | sort | uniq` + - echo $HUNSPELL_FINDINGS + - test "$HUNSPELL_FINDINGS" == "" + allow_failure: true + \ No newline at end of file