Merge branch '39-provide-ci-cd-configuration-for-azure-devops' into 'master'
Resolve "Provide CI / CD configuration for Azure DevOps" Closes #39 See merge request fastexitlane/latex-boilerplate!21
This commit is contained in:
commit
cad94bf3ae
32
latex.azure-pipelines.yml
Normal file
32
latex.azure-pipelines.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- stage: spellcheck
|
||||||
|
jobs:
|
||||||
|
- job: spellcheck_chapters
|
||||||
|
container: fastexitlane/hunspell:latest
|
||||||
|
continueOnError: true
|
||||||
|
steps:
|
||||||
|
- 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`
|
||||||
|
- script: echo $HUNSPELL_FINDINGS
|
||||||
|
- script: test "$HUNSPELL_FINDINGS" == ""
|
||||||
|
- job: spellcheck_appendix
|
||||||
|
container: fastexitlane/hunspell:latest
|
||||||
|
continueOnError: true
|
||||||
|
steps:
|
||||||
|
- script: export HUNSPELL_FINDINGS=`for filename in appendix/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
||||||
|
- script: echo $HUNSPELL_FINDINGS
|
||||||
|
- script: test "$HUNSPELL_FINDINGS" == ""
|
||||||
|
- stage: build
|
||||||
|
jobs:
|
||||||
|
- job: latexmk
|
||||||
|
container: fastexitlane/pandoc-latex:latest
|
||||||
|
steps:
|
||||||
|
- script: latexmk main.tex
|
||||||
|
displayName: Execute LaTex Build
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
ArtifactName: main.pdf
|
||||||
|
PathtoPublish: ./main.pdf
|
||||||
|
|
33
markdown.azure-pipelines.yml
Normal file
33
markdown.azure-pipelines.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- stage: spellcheck
|
||||||
|
jobs:
|
||||||
|
- job: spellcheck_chapters
|
||||||
|
container: fastexitlane/hunspell:latest
|
||||||
|
continueOnError: true
|
||||||
|
steps:
|
||||||
|
- script: export HUNSPELL_FINDINGS=`for filename in chapter/*.md; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore $filename; done | sort | uniq`
|
||||||
|
- script: echo $HUNSPELL_FINDINGS
|
||||||
|
- script: test "$HUNSPELL_FINDINGS" == ""
|
||||||
|
- job: spellcheck_appendix
|
||||||
|
container: fastexitlane/hunspell:latest
|
||||||
|
continueOnError: true
|
||||||
|
steps:
|
||||||
|
- script: export HUNSPELL_FINDINGS=`for filename in appendix/*.tex; do hunspell -l -d de_DE_frami,en_US -p ./.hunspellignore -t $filename; done | sort | uniq`
|
||||||
|
- script: echo $HUNSPELL_FINDINGS
|
||||||
|
- script: test "$HUNSPELL_FINDINGS" == ""
|
||||||
|
- stage: build
|
||||||
|
jobs:
|
||||||
|
- job: pandoc_latexmk
|
||||||
|
steps:
|
||||||
|
- 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
|
||||||
|
displayName: Convert Markdown Files to LaTex
|
||||||
|
- script: latexmk main.tex
|
||||||
|
displayName: Execute LaTex Build
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
ArtifactName: main.pdf
|
||||||
|
PathtoPublish: ./main.pdf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user