#40 added setup script to init repo

This commit is contained in:
Dominik Becker
2020-06-29 22:28:44 +02:00
parent 8bbfee292e
commit 6a58b7b130
8 changed files with 50 additions and 0 deletions

View 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: ./build.sh
displayName: Run Build Script
- task: PublishBuildArtifacts@1
inputs:
ArtifactName: main.pdf
PathtoPublish: ./main.pdf

View File

@@ -0,0 +1,35 @@
stages:
- test
- build
latexmk:
image: fastexitlane/pandoc-latex:latest
stage: build
artifacts:
paths:
- main*.pdf
expire_in: 2d
script:
- ./build.sh
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
- mv main.pdf main@$ci_commit_sha_short.pdf
hunspell_chapters:
image: fastexitlane/hunspell:latest
stage: test
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`
- echo $HUNSPELL_FINDINGS
- test "$HUNSPELL_FINDINGS" == ""
allow_failure: true
hunspell_appendix:
image: fastexitlane/hunspell:latest
stage: test
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`
- echo $HUNSPELL_FINDINGS
- test "$HUNSPELL_FINDINGS" == ""
allow_failure: true

View File

@@ -0,0 +1,24 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "latexmk",
"type": "shell",
"command": "${workspaceFolder}/build.sh",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOrder": "sequence",
"dependsOn": ["clean"]
},
{
"label": "clean",
"type": "shell",
"command": "${workspaceFolder}/build.sh clean",
"group": "none",
}
]
}

View File

@@ -0,0 +1,31 @@
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: ./build.sh pandoc
displayName: Run Build Script with Pandoc Option
- task: PublishBuildArtifacts@1
inputs:
ArtifactName: main.pdf
PathtoPublish: ./main.pdf

View File

@@ -0,0 +1,37 @@
stages:
- test
- build
pandoc_latexmk:
image: fastexitlane/pandoc-latex:latest
stage: build
artifacts:
paths:
- main*.pdf
expire_in: 2d
script:
- ./build.sh pandoc
- ci_commit_sha_short=`git rev-parse --short $CI_COMMIT_SHA`
- mv main.pdf main@$ci_commit_sha_short.pdf
hunspell_chapters:
image: fastexitlane/hunspell:latest
stage: test
script:
- 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
- test "$HUNSPELL_FINDINGS" == ""
allow_failure: true
hunspell_appendix:
image: fastexitlane/hunspell:latest
stage: test
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`
- echo $HUNSPELL_FINDINGS
- test "$HUNSPELL_FINDINGS" == ""
allow_failure: true

View File

@@ -0,0 +1,24 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "latexmk",
"type": "shell",
"command": "${workspaceFolder}/build.sh pandoc",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOrder": "sequence",
"dependsOn": ["clean"]
},
{
"label": "clean",
"type": "shell",
"command": "${workspaceFolder}/build.sh clean",
"group": "none",
}
]
}