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.
This commit is contained in:
Emmanuele Bassi 2019-04-12 20:58:29 +01:00
parent c5a4a26f06
commit f58f0732c2
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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),