[gnome-weather] build: add test to validate appdata file



commit 4eaab043a369811da1be7eff5789987d40e51a25
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Feb 21 20:59:13 2019 -0500

    build: add test to validate appdata file
    
    See https://gitlab.gnome.org/GNOME/Initiatives/issues/8 for details

 data/meson.build | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index 27abed5..1257914 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -73,6 +73,16 @@ appdata = i18n.merge_file(
        po_dir: join_paths(meson.source_root(), 'po')
 )
 
+# Validating app data
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+       test(
+               'validate-appdata', appstream_util,
+               args: [
+                       'validate-relax', '--nonet', appdata.full_path()
+               ]
+       )
+endif
 
 configure_file(
        input: application_id_stable + '.service.in',


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