Skip to content

Commit 93265e9

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 558f50e commit 93265e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

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

2828
$(ELCFILES): %.elc: %.el
29-
$(EMACS) --batch -Q -L . -f batch-byte-compile $<
29+
$(EMACS) --batch -Q -L . --eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $<
3030

3131
# Byte-compile all files in one batch. This is faster than
3232
# compiling each file in isolation, but also less stringent.
@@ -55,7 +55,7 @@ clean:
5555
# The TAG variable may specify a test tag or a test name:
5656
# make test TAG=repeat
5757
# This will only run tests pertaining to the repeat system.
58-
test:
58+
test: compile
5959
$(EMACS) -nw -Q --batch -L . -l evil-tests.el \
6060
--eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))"
6161

0 commit comments

Comments
 (0)