From e08076120497a4c3579650ee59dbf623037d018d Mon Sep 17 00:00:00 2001 From: Dominik Becker Date: Mon, 18 May 2020 23:25:02 +0200 Subject: [PATCH] #38 test config --- .gitlab-ci.yml | 30 +++++++++++++++--------------- chapter/01_text.md | 2 ++ main.tex | 4 ++-- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 chapter/01_text.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30d72cb..e4f6789 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/chapter/01_text.md b/chapter/01_text.md new file mode 100644 index 0000000..574e473 --- /dev/null +++ b/chapter/01_text.md @@ -0,0 +1,2 @@ +# Sample File +This is a simple sample file for the pandoc workflow. \ No newline at end of file diff --git a/main.tex b/main.tex index bdb090c..626d430 100644 --- a/main.tex +++ b/main.tex @@ -64,8 +64,8 @@ % \newpage % when using pandoc workflow instead, uncomment the following - % \input{chapter/out.tex} - % \newpage + \input{chapter/out.tex} + \newpage %%%%%%%%%%%%% %% closing %%