Loading .gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -12,11 +12,12 @@ ci-fairy: - apk add --update git - pip install git+https://gitlab.freedesktop.org/freedesktop/ci-templates script: # ci-fairy doesn't fail on errors, so I workaround that. - logfile="$(mktemp)" - | code='0' for template in templates/*.yml do echo "Checking $template" >&2 ci-fairy lint --filename "$template" || code='1' ci-fairy lint --filename "$template" 2>&1 | tee -a "$logfile" done exit "$code" - '! grep -q ERROR "$logfile"' Loading
.gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -12,11 +12,12 @@ ci-fairy: - apk add --update git - pip install git+https://gitlab.freedesktop.org/freedesktop/ci-templates script: # ci-fairy doesn't fail on errors, so I workaround that. - logfile="$(mktemp)" - | code='0' for template in templates/*.yml do echo "Checking $template" >&2 ci-fairy lint --filename "$template" || code='1' ci-fairy lint --filename "$template" 2>&1 | tee -a "$logfile" done exit "$code" - '! grep -q ERROR "$logfile"'