From 89657831c79612f251641bc2d3bb784049df7d3c Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 28 Jan 2024 03:25:15 +0300 Subject: [PATCH] ci: check for lack of byte-compilation warnings As part of that we test with latest released Emacs version rather than snapshot, because we don't want CI to start suddenly failing on unrelated changes because upstream introduced a new warning/check. --- .github/workflows/test.yml | 2 +- Makefile | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e911e9a8..c22b312d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - 25.3 - 26.3 - 27.1 - - snapshot + - 29.2 steps: - uses: purcell/setup-emacs@master with: diff --git a/Makefile b/Makefile index 920cdaf8..22f78d45 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,8 @@ compile: $(ELCFILES) OLDER_EMACS_DEFUNS = "(progn (defun undo-redo ()) (defun minibuffer-history-value()) (defun switch-to-minibuffer()))" $(ELCFILES): %.elc: %.el - $(EMACS) --batch -Q -L . --eval $(OLDER_EMACS_DEFUNS) -f batch-byte-compile $< + $(EMACS) --batch -Q -L . --eval $(OLDER_EMACS_DEFUNS) \ + --eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $< # Byte-compile all files in one batch. This is faster than # compiling each file in isolation, but also less stringent. @@ -59,7 +60,7 @@ clean: # The TAG variable may specify a test tag or a test name: # make test TAG=repeat # This will only run tests pertaining to the repeat system. -test: +test: compile $(EMACS) -nw -Q --batch -L . -l evil-tests.el \ --eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))"