File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 12
12
- 25.3
13
13
- 26.3
14
14
- 27.1
15
- - snapshot
15
+ - 29.2
16
16
steps :
17
17
- uses : purcell/setup-emacs@master
18
18
with :
24
24
run : |
25
25
emacs --version
26
26
27
+ - name : Test lack of byte-compile warnings
28
+ run : |
29
+ make compile-check
30
+
27
31
- name : Run tests
28
32
run : |
29
33
make test
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ DOC = doc
9
9
TAG =
10
10
11
11
ELCFILES = $(FILES:.el=.elc )
12
+ ELCFILES_CHECK = $(FILES:.el=.elc )
12
13
13
- .PHONY : all compile compile-batch docstrings doc clean tests test emacs term terminal profiler indent elpa version
14
+ .PHONY : all compile compile-check compile- batch docstrings doc clean tests test emacs term terminal profiler indent elpa version
14
15
15
16
# Byte-compile Evil.
16
17
all : compile
17
18
compile : $(ELCFILES )
19
+ compile-check : $(ELCFILES_CHECK )
18
20
19
21
.depend : $(FILES )
20
22
@echo Compute dependencies
@@ -28,6 +30,9 @@ compile: $(ELCFILES)
28
30
$(ELCFILES ) : % .elc: % .el
29
31
$(EMACS ) --batch -Q -L . -f batch-byte-compile $<
30
32
33
+ $(ELCFILES_CHECK ) : % .elc: % .el
34
+ $(EMACS ) --batch -Q -L . --eval " (setq byte-compile-error-on-warn t)" -f batch-byte-compile $<
35
+
31
36
# Byte-compile all files in one batch. This is faster than
32
37
# compiling each file in isolation, but also less stringent.
33
38
compile-batch : clean
60
65
--eval " (evil-tests-initialize '(${TAG} ) '(${PROFILER} ))"
61
66
62
67
# Byte-compile Evil and run all tests.
63
- tests : compile
68
+ tests : compile-check
64
69
$(EMACS ) -nw -Q -L . -l evil-tests.el \
65
70
--eval " (evil-tests-initialize '(${TAG} ) '(${PROFILER} ))"
66
71
rm -f * .elc .depend
You can’t perform that action at this time.
0 commit comments