Merge branch 'cache-reftest-images' into 'master'

ci: Cache the reftest artifacts

See merge request GNOME/gtk!744
This commit is contained in:
Emmanuele Bassi 2019-04-12 20:09:50 +00:00
commit 261b8c7ee6
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),