uni-ausarbeitung/.gitlab-ci.yml
2020-05-18 23:25:02 +02:00

48 lines
1.4 KiB
YAML

stages:
- test
- build
#latexmk:
# image: bnord01/docker-latex-pygments:latest
# stage: build
# artifacts:
# paths:
# - main*.pdf
# expire_in: 2d
# script:
# - latexmk main.tex
# - ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
# - mv main.pdf main@$ci_commit_sha_short.pdf
pandoc_latexmk:
image: pandoc/latex
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: tmaier/hunspell:latest
stage: test
script:
- export HUNSPELL_FINDINGS=`for filename in chapter/*.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
hunspell_appendix:
image: tmaier/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