emacs-diffs
[Top][All Lists]
Advanced

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

master d844521abd5 2/2: Improve treesitter tests on EMBA


From: Michael Albinus
Subject: master d844521abd5 2/2: Improve treesitter tests on EMBA
Date: Tue, 30 Apr 2024 03:26:14 -0400 (EDT)

branch: master
commit d844521abd586f7a42bf6f4f913d39e575f7a750
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Improve treesitter tests on EMBA
    
    * test/infra/Makefile.in (subdir_template):
    * test/infra/gitlab-ci.yml (.tree-sitter-template): Check also
    textmodes subdirectory for treesitter files.
    
    * test/infra/test-jobs.yml: Regenerate.
---
 test/infra/Makefile.in   | 9 +++++++++
 test/infra/gitlab-ci.yml | 3 +++
 test/infra/test-jobs.yml | 5 +++++
 3 files changed, 17 insertions(+)

diff --git a/test/infra/Makefile.in b/test/infra/Makefile.in
index 77ab1921212..9c32fd6a192 100644
--- a/test/infra/Makefile.in
+++ b/test/infra/Makefile.in
@@ -76,6 +76,15 @@ define subdir_template
     define changes
        @echo '        - lisp/so-long*.el' >>$(FILE)
     endef
+    else ifeq ($(findstring textmodes, $(1)), textmodes)
+    define changes
+       @echo '        - $(1)/*-ts-mode.el' >>$(FILE)
+       @echo '        - test/$(1)/*-ts-mode-resources/**' >>$(FILE)
+       @echo '        - test/$(1)/*-ts-mode-tests.el' >>$(FILE)
+       @echo '      when: never' >>$(FILE)
+       @echo '    - changes:' >>$(FILE)
+       @echo '        - $(1)/*.el' >>$(FILE)
+    endef
     else ifeq ($(findstring misc, $(1)), misc)
     define changes
        @echo '        - admin/*.el' >>$(FILE)
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index 49e2118761d..11ff0d1c738 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -186,12 +186,15 @@ default:
         - lisp/progmodes/*-ts-mode.el
         - lisp/progmodes/js.el
         - lisp/progmodes/python.el
+        - lisp/textmodes/*-ts-mode.el
         - src/treesit.{h,c}
         - test/infra/*
         - test/lisp/progmodes/*-ts-mode-resources/**
         - test/lisp/progmodes/*-ts-mode-tests.el
         - test/lisp/progmodes/js-tests.el
         - test/lisp/progmodes/python-tests.el
+        - test/lisp/textmodes/*-ts-mode-resources/**
+        - test/lisp/textmodes/*-ts-mode-tests.el
         - test/src/treesit-tests.el
 
 .native-comp-template:
diff --git a/test/infra/test-jobs.yml b/test/infra/test-jobs.yml
index d9ba2363c9e..0d9cbb029e5 100644
--- a/test/infra/test-jobs.yml
+++ b/test/infra/test-jobs.yml
@@ -475,6 +475,11 @@ test-lisp-textmodes-inotify:
   rules:
     - if: '$CI_PIPELINE_SOURCE == "schedule"'
       when: never
+    - changes:
+        - lisp/textmodes/*-ts-mode.el
+        - test/lisp/textmodes/*-ts-mode-resources/**
+        - test/lisp/textmodes/*-ts-mode-tests.el
+      when: never
     - changes:
         - lisp/textmodes/*.el
         - test/lisp/textmodes/*resources/**



reply via email to

[Prev in Thread] Current Thread [Next in Thread]