2020-05-24 13:26:08 +00:00
|
|
|
stages:
|
2020-05-24 13:51:14 +00:00
|
|
|
- test
|
|
|
|
- build
|
2020-05-24 13:44:16 +00:00
|
|
|
|
2020-05-24 13:51:14 +00:00
|
|
|
latexmk:
|
2020-05-24 13:26:08 +00:00
|
|
|
image: fastexitlane/pandoc-latex: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
|
2020-05-24 13:44:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
hunspell_chapters:
|
|
|
|
image: fastexitlane/hunspell:latest
|
|
|
|
stage: test
|
|
|
|
script:
|
2020-05-24 13:51:14 +00:00
|
|
|
- export HUNSPELL_FINDINGS=`for filename in chapter/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
2020-05-24 13:44:16 +00:00
|
|
|
- echo $HUNSPELL_FINDINGS
|
|
|
|
- test "$HUNSPELL_FINDINGS" == ""
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
|
|
|
|
hunspell_appendix:
|
|
|
|
image: fastexitlane/hunspell:latest
|
|
|
|
stage: test
|
|
|
|
script:
|
2020-05-24 13:48:59 +00:00
|
|
|
- export HUNSPELL_FINDINGS=`for filename in appendix/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
2020-05-24 13:44:16 +00:00
|
|
|
- echo $HUNSPELL_FINDINGS
|
|
|
|
- test "$HUNSPELL_FINDINGS" == ""
|
|
|
|
allow_failure: true
|