summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-06-16 09:58:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-06-16 09:58:56 +1000
commit2698867311db78a7190bba1a20f0f27cfa04ffad (patch)
tree147b415577ed44ceecaffaccfed4d1c5583c8916 /.gitlab-ci.yml
parent0ebdab6d6cd3d11c3691259adfe264576ec28792 (diff)
downloadlibevdev-2698867311db78a7190bba1a20f0f27cfa04ffad.tar.gz
gitlab CI: use ci-fairy to check commits and merge requests
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml36
1 files changed, 25 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 875a7be..a612d72 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -160,30 +160,44 @@ check-ci-script:
- echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
- exit 1
+#
+# Verify that commit messages are as expected, signed-off, etc.
+#
+
check-commit:
image: golang:alpine
stage: prep
before_script:
- apk add python3 py-pip git
- - pip3 install GitPython
- - pip3 install pytest
+ - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates
script:
- - |
- pytest --junitxml=results.xml \
- --tb=line \
- --assert=plain \
- ./.gitlab-ci/check-commit.py
+ - ci-fairy check-commits --signed-off-by --junit-xml=results.xml
except:
- - master@libevdev/libevdev
+ - master@libinput/libinput
variables:
GIT_DEPTH: 100
artifacts:
- expire_in: 1 week
+ 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
- paths:
- - results.xml
reports:
junit: results.xml
+ allow_failure: true
+
.fedora.packages:
variables: