From 34b8a46e640c655b5e552410817fa70ca558f4d2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 30 Apr 2021 09:11:43 +1000 Subject: gitlab CI: check that the autotools and meson versions are in sync Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 65dd0d2..bfee17e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ variables: FDO_UPSTREAM_REPO: 'xorg/proto/xorgproto' # Changing the tag will rebuild the container images. The value is just a # string, but we use the date for human benefits. - FDO_DISTRIBUTION_TAG: '2021-02-24.0' + FDO_DISTRIBUTION_TAG: '2021-04-30.0' stages: - prep @@ -29,7 +29,7 @@ container-prep: # minimal set of packages required to build and install BASE_PACKAGES: 'meson ninja gcc autoconf automake make xorg-util-macros pkgconf' # extra packages we need for various tests - EXTRA_PACKAGES: 'git libevdev python python-libevdev python-black' + EXTRA_PACKAGES: 'git libevdev python python-libevdev python-black jq' FDO_DISTRIBUTION_PACKAGES: $BASE_PACKAGES $EXTRA_PACKAGES meson: @@ -121,3 +121,17 @@ check formatting: only: changes: - scripts/keysym-generator.py + +check versions are in sync: + extends: + - .fdo.distribution-image@arch + stage: test + script: + - autoreconf -ivf + - ./configure --version | head -n 1 | sed -e 's/xorgproto configure //' > autotools.version + - | + meson builddir + pushd builddir + meson introspect --projectinfo | jq -r '.version' > ../meson.version + popd + - diff -u autotools.version meson.version || (echo "ERROR - autotools and meson versions not in sync" && false) -- cgit v1.2.3