[gtk/cache-reftest-images] ci: Cache the reftest artifacts



commit f58f0732c2c9e4e4016102e23308753d7cde851c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Apr 12 20:58:29 2019 +0100

    ci: Cache the reftest artifacts
    
    Keeping the reftest output images as artifacts of a job allows us to
    browse them and download them straight from GitLab.

 .gitlab-ci.yml                 | 1 +
 testsuite/reftests/meson.build | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c5c681fffd..57cb4ab9c1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,6 +26,7 @@ fedora-x86_64:
     paths:
       - "${CI_PROJECT_DIR}/_build/meson-logs"
       - "${CI_PROJECT_DIR}/_build/report.xml"
+      - "${CI_PROJECT_DIR}/_build/testsuite/reftests/output/*.png"
   cache:
     key: "$CI_JOB_NAME"
     <<: *cache-paths
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index b91ec0927e..38c98cb6e7 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -427,7 +427,12 @@ xfails = [
 foreach testname : testdata
   if testname.endswith('.ui') and not testname.endswith('.ref.ui')
     test('reftest ' + testname, gtk_reftest,
-         args: [ '--tap', '-k', '--verbose', join_paths(meson.current_source_dir(), testname) ],
+         args: [ '--tap',
+                 '-k',
+                 '--verbose',
+                 '-o', join_paths(meson.current_build_dir(), 'output'),
+                 join_paths(meson.current_source_dir(), testname),
+         ],
          env: [ 'GIO_USE_VOLUME_MONITOR=unix',
                 'GSETTINGS_BACKEND=memory',
                 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),


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