From e66b2df33bc00880e9864a3fa5f81e18b584700e Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Thu, 21 Nov 2019 14:14:41 +0100
Subject: [PATCH] Add .gitlab-ci.yml

The script runs automated protocol validation checks. The image is
generated using fd.o CI templates [1].

[1]: https://gitlab.freedesktop.org/wayland/ci-templates

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/issues/5
---
 .gitlab-ci.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..fad185d9
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+variables:
+  DEBIAN_TAG: 2019-11-21-02
+  DEBIAN_VERSION: stable
+  TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
+
+include:
+  - project: 'wayland/ci-templates'
+    ref: master
+    file: '/templates/debian.yml'
+
+stages:
+  - containers-build
+  - test
+
+container_build:
+  extends: .debian@container-ifnot-exists
+  stage: containers-build
+  variables:
+    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
+    DEBIAN_DEBS: 'autoconf libwayland-dev'
+
+test:
+  stage: test
+  image: $TEST_IMAGE
+  script:
+    - ./autogen.sh
+    - make check
-- 
GitLab