#40 added setup script to init repo
This commit is contained in:
32
templates/latex.azure-pipelines.yml
Normal file
32
templates/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: ./build.sh
|
||||
displayName: Run Build Script
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
ArtifactName: main.pdf
|
||||
PathtoPublish: ./main.pdf
|
||||
|
35
templates/latex.gitlab-ci.yml
Normal file
35
templates/latex.gitlab-ci.yml
Normal 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
|
24
templates/latex.tasks.json
Normal file
24
templates/latex.tasks.json
Normal 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",
|
||||
}
|
||||
]
|
||||
}
|
31
templates/markdown.azure-pipelines.yml
Normal file
31
templates/markdown.azure-pipelines.yml
Normal 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
|
||||
|
37
templates/markdown.gitlab-ci.yml
Normal file
37
templates/markdown.gitlab-ci.yml
Normal 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
|
||||
|
24
templates/markdown.tasks.json
Normal file
24
templates/markdown.tasks.json
Normal 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",
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user