gitlab-ci: add build configuration without gl-renderer
authorStefan Agner <stefan@agner.ch>
Sun, 20 Oct 2019 15:19:03 +0000 (17:19 +0200)
committerPekka Paalanen <pq@iki.fi>
Thu, 24 Oct 2019 09:09:33 +0000 (09:09 +0000)
Building without gl-renderer seems to fail rather often. Introduce a
specific build job which tests this configuration.

Make use of the Folded Block Scalar in YAML to concatenate the build
option string with spaces. This will make diffing build option
changes very readable.

Signed-off-by: Stefan Agner <stefan@agner.ch>
.gitlab-ci.yml

index d369e5ff9a7331175e90149d7ebbf512b8b16742..e7f2a0f2132d5b00acb57a3965cdd4c9dff8c434 100644 (file)
@@ -47,12 +47,12 @@ container_prep:
   - export BUILDDIR="$(pwd)/build-$BUILD_ID"
   - mkdir "$BUILDDIR" "$PREFIX"
 
-build-native-meson:
+.build-native-meson:
   extends: .build-native
   script:
   - export PATH=~/.local/bin:$PATH
   - cd "$BUILDDIR"
-  - meson --prefix="$PREFIX" -Dsimple-dmabuf-drm=intel -Dwerror=true -Ddoc=true ..
+  - meson --prefix="$PREFIX" ${MESON_OPTIONS} ..
   - ninja -k0
   - ninja install
   - ninja test
@@ -64,10 +64,28 @@ build-native-meson:
     - build-*/meson-logs
     - prefix-*
 
+build-native-meson-default-options:
+  variables:
+    MESON_OPTIONS: >
+      -Dsimple-dmabuf-drm=intel
+      -Dwerror=true
+      -Ddoc=true
+  extends: .build-native-meson
+
+build-native-meson-no-gl-renderer:
+  variables:
+    MESON_OPTIONS: >
+      -Dsimple-dmabuf-drm=intel
+      -Dsimple-clients=damage,im,shm,touch,dmabuf-v4l
+      -Drenderer-gl=false
+      -Dremoting=false
+      -Dwerror=true
+  extends: .build-native-meson
+
 pages:
   stage: pages
   dependencies:
-    - build-native-meson
+    - build-native-meson-default-options
   script:
   - export PREFIX=$(pwd)/prefix-weston-build-native-meson
   - mkdir public