Skip to content

Commit 61cd109

Browse files
committed
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.
1 parent f647859 commit 61cd109

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- 25.3
1313
- 26.3
1414
- 27.1
15-
- snapshot
15+
- 29.2
1616
steps:
1717
- uses: purcell/setup-emacs@master
1818
with:

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ compile: $(ELCFILES)
3030
OLDER_EMACS_DEFUNS = "(progn (defun undo-redo ()) (defun minibuffer-history-value()) (defun switch-to-minibuffer()))"
3131

3232
$(ELCFILES): %.elc: %.el
33-
$(EMACS) --batch -Q -L . --eval $(OLDER_EMACS_DEFUNS) -f batch-byte-compile $<
33+
$(EMACS) --batch -Q -L . --eval $(OLDER_EMACS_DEFUNS) \
34+
--eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $<
3435

3536
# Byte-compile all files in one batch. This is faster than
3637
# compiling each file in isolation, but also less stringent.
@@ -59,7 +60,7 @@ clean:
5960
# The TAG variable may specify a test tag or a test name:
6061
# make test TAG=repeat
6162
# This will only run tests pertaining to the repeat system.
62-
test:
63+
test: compile
6364
$(EMACS) -nw -Q --batch -L . -l evil-tests.el \
6465
--eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))"
6566

0 commit comments

Comments
 (0)