[gnome-flashback/test: 1/2] ci: validate menu file



commit 0cccf56981838245e5be15f5f9373c8000a5b5f2
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Mar 20 21:45:26 2020 +0200

    ci: validate menu file

 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f98c875..57f1204 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,19 @@ stages:
 variables:
   GIT_SUBMODULE_STRATEGY: normal
 
+validate-menu:
+  image: ubuntu:devel
+  stage: .pre
+  except:
+    - tags
+  before_script:
+    - apt-get update
+    - apt-get install -q -y --no-install-recommends libxml2-utils
+  script:
+    - xmllint --noblanks --noout
+      --path https://standards.freedesktop.org/menu-spec/menu-latest.dtd
+      data/menus/gnome-flashback-applications.menu
+
 build-ubuntu:
   image: ubuntu:devel
   stage: build


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