[mutter/wip/3v1n0/ci-norebuilds: 27/30] gitlab-ci: Use artifacts to keep built data and reuse in test
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/3v1n0/ci-norebuilds: 27/30] gitlab-ci: Use artifacts to keep built data and reuse in test
- Date: Wed, 30 Jan 2019 17:29:29 +0000 (UTC)
commit d7baa89d97337bf40a3f8d90f524a75eefd43a39
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Jan 23 13:28:38 2019 +0100
gitlab-ci: Use artifacts to keep built data and reuse in test
Make test to be dependent on build phase, saving artifacts for some time in
order to just run the tests without performing any rebuild.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/408
.gitlab-ci.yml | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 52705c8c1..8257ba040 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,11 +10,21 @@ build-mutter:
- meson . build -Dbuildtype=debugoptimized -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
+ - env XDG_RUNTIME_DIR=/tmp
+ 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]