Skip to content

Commit 9f68edd

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 40a5ac9 commit 9f68edd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ compile: $(ELCFILES)
2626
-include .depend
2727

2828
$(ELCFILES): %.elc: %.el
29-
$(EMACS) --batch -Q -L . --eval "(declare-function undo-redo nil)" -f batch-byte-compile $<
29+
$(EMACS) --batch -Q -L . --eval "(declare-function undo-redo nil)" \
30+
--eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $<
31+
3032

3133
# Byte-compile all files in one batch. This is faster than
3234
# compiling each file in isolation, but also less stringent.
@@ -55,7 +57,7 @@ clean:
5557
# The TAG variable may specify a test tag or a test name:
5658
# make test TAG=repeat
5759
# This will only run tests pertaining to the repeat system.
58-
test:
60+
test: compile
5961
$(EMACS) -nw -Q --batch -L . -l evil-tests.el \
6062
--eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))"
6163

0 commit comments

Comments
 (0)