#42 changed mwe for latex
This commit is contained in:
parent
e49f9c24ea
commit
a349aebc04
|
@ -2,8 +2,7 @@ stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
latexmk:
|
||||||
pandoc_latexmk:
|
|
||||||
image: fastexitlane/pandoc-latex:latest
|
image: fastexitlane/pandoc-latex:latest
|
||||||
stage: build
|
stage: build
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -11,7 +10,6 @@ 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
|
|
||||||
- latexmk main.tex
|
- 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
|
||||||
|
@ -21,7 +19,7 @@ hunspell_chapters:
|
||||||
image: fastexitlane/hunspell:latest
|
image: fastexitlane/hunspell:latest
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- export HUNSPELL_FINDINGS=`for filename in chapter/*.md; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore $filename; done | sort | uniq`
|
- export HUNSPELL_FINDINGS=`for filename in chapter/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
||||||
- echo $HUNSPELL_FINDINGS
|
- echo $HUNSPELL_FINDINGS
|
||||||
- test "$HUNSPELL_FINDINGS" == ""
|
- test "$HUNSPELL_FINDINGS" == ""
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
@ -35,4 +33,3 @@ hunspell_appendix:
|
||||||
- echo $HUNSPELL_FINDINGS
|
- echo $HUNSPELL_FINDINGS
|
||||||
- test "$HUNSPELL_FINDINGS" == ""
|
- test "$HUNSPELL_FINDINGS" == ""
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
|
@ -2,7 +2,8 @@ stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
|
||||||
latexmk:
|
|
||||||
|
pandoc_latexmk:
|
||||||
image: fastexitlane/pandoc-latex:latest
|
image: fastexitlane/pandoc-latex:latest
|
||||||
stage: build
|
stage: build
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -10,6 +11,7 @@ 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
|
||||||
- latexmk main.tex
|
- 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
|
||||||
|
@ -19,7 +21,7 @@ hunspell_chapters:
|
||||||
image: fastexitlane/hunspell:latest
|
image: fastexitlane/hunspell:latest
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- export HUNSPELL_FINDINGS=`for filename in chapter/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
- export HUNSPELL_FINDINGS=`for filename in chapter/*.md; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore $filename; done | sort | uniq`
|
||||||
- echo $HUNSPELL_FINDINGS
|
- echo $HUNSPELL_FINDINGS
|
||||||
- test "$HUNSPELL_FINDINGS" == ""
|
- test "$HUNSPELL_FINDINGS" == ""
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
@ -33,3 +35,4 @@ hunspell_appendix:
|
||||||
- echo $HUNSPELL_FINDINGS
|
- echo $HUNSPELL_FINDINGS
|
||||||
- test "$HUNSPELL_FINDINGS" == ""
|
- test "$HUNSPELL_FINDINGS" == ""
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user