Commit 7755c243 authored by nimrod's avatar nimrod
Browse files

Fix the ci-fairy CI job.

For real this time.
parent 7560d95c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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"'