diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 139a3e0a..ac51f290 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -80,11 +80,19 @@ autotools_build: variables: DEPENDENCIES: $MESON_DEPS make autoconf script: + # Don't try to build with Autotools if the image's version of glib is too old. + # Meson can build glib as a subproject, but Autotools has no subprojects. + - glib_required=`sed -n '/glibreq=/ s/.*\(2\.[0-9]*\.[0-9]*\).*/\1/p' configure.ac` + - glib_exists=`pkg-config --modversion glib-2.0` + - if test $glib_required '>' $glib_exists; then + - echo GLib $glib_exists exists, $glib_required required. Skip building with Autotools. + - else - cp -r installdir/usr / - ./autogen.sh --enable-warnings=fatal --prefix=/usr - make - make check - make install + - fi allow_failure: true debug_gcc_build: |