#38 test config

This commit is contained in:
Dominik Becker 2020-05-18 23:25:02 +02:00
parent baed3fcdf8
commit e080761204
3 changed files with 19 additions and 17 deletions

View File

@ -2,31 +2,31 @@ 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
#latexmk:
# image: bnord01/docker-latex-pygments: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
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

2
chapter/01_text.md Normal file
View File

@ -0,0 +1,2 @@
# Sample File
This is a simple sample file for the pandoc workflow.

View File

@ -64,8 +64,8 @@
% \newpage
% when using pandoc workflow instead, uncomment the following
% \input{chapter/out.tex}
% \newpage
\input{chapter/out.tex}
\newpage
%%%%%%%%%%%%%
%% closing %%