From: Peter Hutterer Date: Mon, 15 Jun 2020 10:50:29 +0000 (+1000) Subject: gitlab CI: check merge requests for the allow collaboration checkbox X-Git-Tag: 1.15.901~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=600a0334a75e986c51a60ad32d58b019d07ea58c;p=platform%2Fupstream%2Flibinput.git gitlab CI: check merge requests for the allow collaboration checkbox Signed-off-by: Peter Hutterer --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5601e818..85d923c4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -166,6 +166,24 @@ check-commit: reports: junit: results.xml +# +# Verify that the merge request has the allow-collaboration checkbox ticked +# + +check-merge-request: + image: golang:alpine + stage: prep + before_script: + - apk add python3 py-pip git + - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates + script: + - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml + artifacts: + when: on_failure + reports: + junit: results.xml + allow_failure: true + # # This stage will recreate the container images only if the image # is too old or if it is missing some dependencies. diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index f92efebc..2295e559 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -162,6 +162,24 @@ check-commit: reports: junit: results.xml +# +# Verify that the merge request has the allow-collaboration checkbox ticked +# + +check-merge-request: + image: golang:alpine + stage: prep + before_script: + - apk add python3 py-pip git + - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates + script: + - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml + artifacts: + when: on_failure + reports: + junit: results.xml + allow_failure: true + # # This stage will recreate the container images only if the image # is too old or if it is missing some dependencies.