summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-11-21 14:14:41 +0100
committerSimon Ser <contact@emersion.fr>2019-11-21 15:46:50 +0100
commitf4c76c4cc520efa780ee6ec117dc0a75869ec481 (patch)
treea4cd20c5217a4baf9f8cc14e6d8331a4b383ae9a /.gitlab-ci.yml
parent6d0fc7065633d6056602623c9ab8376db306ec2e (diff)
downloadwayland-protocols-f4c76c4cc520efa780ee6ec117dc0a75869ec481.tar.gz
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
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..66a56a3
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+variables:
+ DEBIAN_TAG: 2019-11-21.0
+ DEBIAN_VERSION: stable
+ TEST_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
+
+include:
+ - project: 'wayland/ci-templates'
+ ref: f69acac60d5dde0410124fd5674764600821b7a6
+ 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: 'build-essential automake autoconf libtool pkg-config libwayland-dev'
+
+test:
+ stage: test
+ image: $TEST_IMAGE
+ script:
+ - ./autogen.sh
+ - make check