label: für übergreifende Tasks hinzufügen #9

This commit is contained in:
Felix Lohmeier 2021-01-20 12:30:21 +01:00
parent 3760451b36
commit 8d78f56cbf
1 changed files with 11 additions and 1 deletions

View File

@ -38,6 +38,7 @@ tasks:
- task: siegen:default - task: siegen:default
check: check:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}}/refine dir: data/{{.PROJECT}}/refine
cmds: cmds:
- test -n "{{.PROJECT}}"; test -n "{{.MINIMUM}}" - test -n "{{.PROJECT}}"; test -n "{{.MINIMUM}}"
@ -45,8 +46,12 @@ tasks:
- if grep -i 'exception\|error' openrefine.log; then echo 1>&2 "Logdatei $PWD/openrefine.log enthält Warnungen!" && exit 1; fi - if grep -i 'exception\|error' openrefine.log; then echo 1>&2 "Logdatei $PWD/openrefine.log enthält Warnungen!" && exit 1; fi
# Prüfen, ob Mindestanzahl von 1250 Datensätzen generiert wurde # Prüfen, ob Mindestanzahl von 1250 Datensätzen generiert wurde
- if (( {{.MINIMUM}} > $(grep -c recordIdentifier {{.PROJECT}}.txt) )); then echo 1>&2 "Unerwartet geringe Anzahl an Datensätzen in $PWD/{{.PROJECT}}.txt!" && exit 1; fi - if (( {{.MINIMUM}} > $(grep -c recordIdentifier {{.PROJECT}}.txt) )); then echo 1>&2 "Unerwartet geringe Anzahl an Datensätzen in $PWD/{{.PROJECT}}.txt!" && exit 1; fi
sources:
- openrefine.log
- '{{.PROJECT}}.txt'
split: split:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}}/split dir: data/{{.PROJECT}}/split
cmds: cmds:
- test -n "{{.PROJECT}}" - test -n "{{.PROJECT}}"
@ -62,6 +67,7 @@ tasks:
- ./*.xml - ./*.xml
validate: validate:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}} dir: data/{{.PROJECT}}
cmds: cmds:
- test -n "{{.PROJECT}}" - test -n "{{.PROJECT}}"
@ -74,6 +80,7 @@ tasks:
- validate.log - validate.log
zip: zip:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}} dir: data/{{.PROJECT}}
cmds: cmds:
- test -n "{{.PROJECT}}" - test -n "{{.PROJECT}}"
@ -82,9 +89,10 @@ tasks:
sources: sources:
- split/*.xml - split/*.xml
generates: generates:
- "{{.PROJECT}}_{{.DATE}}.zip" - '{{.PROJECT}}_{{.DATE}}.zip'
diff: diff:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}} dir: data/{{.PROJECT}}
cmds: cmds:
- test -n "{{.PROJECT}}" - test -n "{{.PROJECT}}"
@ -106,6 +114,7 @@ tasks:
- test -z $(ls -t *.zip | sed -n 2p) - test -z $(ls -t *.zip | sed -n 2p)
linkcheck: linkcheck:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}} dir: data/{{.PROJECT}}
cmds: cmds:
- test -n "{{.PROJECT}}" - test -n "{{.PROJECT}}"
@ -122,6 +131,7 @@ tasks:
- linkcheck.log - linkcheck.log
delete: delete:
label: '{{.TASK}}-{{.PROJECT}}'
dir: data/{{.PROJECT}} dir: data/{{.PROJECT}}
cmds: cmds:
- test -n "{{.PROJECT}}" - test -n "{{.PROJECT}}"