gitlab-ci: Create two different jobs for autotools and meson builds
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Thu, 20 Sep 2018 02:46:39 +0000 (09:46 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 4 Oct 2018 03:14:18 +0000 (08:44 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
.gitlab-ci.yml

index 5362f12..cd80c45 100644 (file)
@@ -1,6 +1,6 @@
 image: registry.freedesktop.org/pulseaudio/pulseaudio/ubuntu:18.04
 
-build:
+build-autotools:
   stage: build
   script:
     - export MAKEFLAGS="-j$(nproc)"
@@ -13,10 +13,17 @@ build:
     - make check-daemon
     - ulimit -c 0 # don't dump core files on tests that are supposed to assert
     - make distcheck
-    - cd ..
-    - meson . build-meson
-    - ninja -C build-meson
   artifacts:
     paths:
       - build/
-      - build-meson/
+
+build-meson:
+  stage: build
+  script:
+    - meson build
+    - cd build
+    - ninja
+    - ninja test
+  artifacts:
+    paths:
+      - build/