#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 - test
- build - build
latexmk: #latexmk:
image: bnord01/docker-latex-pygments:latest # 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 # stage: build
# artifacts: # artifacts:
# paths: # paths:
# - 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
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: hunspell_chapters:
image: tmaier/hunspell:latest image: tmaier/hunspell:latest
stage: test 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 % \newpage
% when using pandoc workflow instead, uncomment the following % when using pandoc workflow instead, uncomment the following
% \input{chapter/out.tex} \input{chapter/out.tex}
% \newpage \newpage
%%%%%%%%%%%%% %%%%%%%%%%%%%
%% closing %% %% closing %%