[polari] ci: Add syntax check



commit b2cb60a7c77b10ce032ee9c905f0207062a4bafb
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 18 03:39:38 2022 +0100

    ci: Add syntax check
    
    Pull in gjs-ci-tools, which includes a script to perform a simple
    syntax check similar to `js91 --compile-only`, then run the script
    during CI to replace the previously removed compile-time tests.
    
    The script uses gjs instead of the SpiderMonkey shell, which means
    it will always use the same engine version with the same feature set
    as gjs.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/245>

 .gitlab-ci.yml | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d4885f73..5934b126 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,11 +48,11 @@ workflow:
 .polari.fedora:35:
   variables:
     FDO_DISTRIBUTION_VERSION: 35
-    FDO_DISTRIBUTION_TAG: '2022-02-15.0'
+    FDO_DISTRIBUTION_TAG: '2022-02-18.0'
     FDO_DISTRIBUTION_PACKAGES: >
       meson gcc g++ pkgconf git gettext itstool
       desktop-file-utils */appstream-util */json-glib-validate
-      findutils mozjs91-devel nodejs npm
+      mozjs91-devel nodejs npm
       pkgconfig(gtk+-3.0) pkgconfig(gjs-1.0)
       pkgconfig(gobject-introspection-1.0)
       pkgconfig(telepathy-glib)
@@ -65,6 +65,10 @@ workflow:
         https://gitlab.gnome.org/GNOME/gjs.git \
         1.71.1 . &&
 
+      ./.gitlab-ci/install-meson-project.sh \
+        https://gitlab.gnome.org/fmuellner/gjs-ci-tools.git \
+        main .
+
 .prereview_req: &prereview_req
   needs:
     - check_commit_log
@@ -130,6 +134,16 @@ eslint:
     reports:
       junit: ${LINT_LOG}
 
+js-check:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .polari.fedora:35
+  stage: review
+  needs:
+    - build-fedora-container
+  script:
+    - gjs-check-syntax
+
 .flatpak-template:
   stage: build
   <<: *prereview_req


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