[mutter/wip/3v1n0/ci-norebuilds] Don't rebuild tests



commit caa736dd9573508d3d282702c459bd0796f0e80a
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Jan 23 13:28:38 2019 +0100

    Don't rebuild tests

 .gitlab-ci.yml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9c7fbe42c..a1a2384b2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,11 +10,22 @@ build-mutter:
     - meson . build -Degl_device=true -Dwayland_eglstream=true --werror
     - ninja -C build
     - ninja -C build install
+  artifacts:
+    expire_in: 2 hours
+    paths:
+      - build
 
 test-mutter:
   stage: test
+  dependencies:
+    - build-mutter
+  artifacts:
+    paths:
+      - build
   script:
-    - meson . build -Degl_device=true -Dwayland_eglstream=true
-    - ninja -C build
     - glib-compile-schemas $PWD/build/data
-    - env XDG_RUNTIME_DIR=/tmp/ GSETTINGS_SCHEMA_DIR=$PWD/build/data dbus-run-session -- xvfb-run -s '+iglx 
-noreset' meson test -C build -t 10 --verbose --no-stdsplit --wrap catchsegv
+    - mdir -m 700 $PWD/runtime-dir
+    - env XDG_RUNTIME_DIR=$PWD/runtime-dir
+      GSETTINGS_SCHEMA_DIR=$PWD/build/data
+      dbus-run-session -- xvfb-run -s '+iglx -noreset'
+      meson test -C build --no-rebuild -t 10 --verbose --no-stdsplit --wrap catchsegv


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]