gitlab-ci: add a job that only build things needed for testing
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Nov 2019 11:23:41 +0000 (12:23 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Nov 2019 08:35:04 +0000 (09:35 +0100)
For turnip and RADV testing, we will need a debugoptimized build
without UBSAN. This introduces meson-testing which builds only the
things that are needed by the test stage.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
.gitlab-ci.yml

index 5860026296c42a1b065035c9a270eef0062eb9a2..e50bb4a3d5727437bf3a4308ba1ebe8c805497b3 100644 (file)
@@ -209,10 +209,28 @@ arm_test:
   script:
     - .gitlab-ci/scons-build.sh
 
-meson-main:
+meson-testing:
   extends:
     - .meson-build
     - .ci-deqp-artifacts
+  variables:
+    UNWIND: "true"
+    DRI_LOADERS: >
+      -D glx=dri
+      -D gbm=true
+      -D egl=true
+      -D platforms=x11,drm,surfaceless
+    GALLIUM_ST: >
+      -D dri3=true
+    GALLIUM_DRIVERS: "swrast"
+    LLVM_VERSION: "7"
+    BUILDTYPE: "debugoptimized"
+  script:
+    - .gitlab-ci/meson-build.sh
+    - .gitlab-ci/prepare-artifacts.sh
+
+meson-main:
+  extends: .meson-build
   variables:
     UNWIND: "true"
     DRI_LOADERS: >
@@ -240,7 +258,6 @@ meson-main:
   script:
     - .gitlab-ci/meson-build.sh
     - .gitlab-ci/run-shader-db.sh
-    - .gitlab-ci/prepare-artifacts.sh
 
 .meson-cross:
   extends:
@@ -483,9 +500,9 @@ scons-old-llvm:
     paths:
       - results/
   dependencies:
-    - meson-main
+    - meson-testing
   needs:
-    - meson-main
+    - meson-testing
     - x86_test
 
 .piglit-test: