Skip to content

Commit c4a68c0

Browse files
committed
Add CI test makefile
1 parent dde3570 commit c4a68c0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
SHELL := /usr/bin/env bash
2+
3+
EMACS ?= emacs
4+
CASK ?= cask
5+
6+
TEST-FILES := test/bootstrap.el $(shell ls test/parse-it-*.el)
7+
LOAD-FILE = -l $(test-file)
8+
LOAD-TEST-FILES := $(foreach test-file, $(TEST-FILES), $(LOAD-FILE))
9+
10+
build:
11+
EMACS=$(EMACS) cask install
12+
EMACS=$(EMACS) cask build
13+
EMACS=$(EMACS) cask clean-elc
14+
15+
ci: CASK=
16+
ci: compile clean
17+
18+
compile:
19+
@echo "Compiling..."
20+
@$(CASK) $(EMACS) -Q --batch \
21+
-l test/bootstrap.el \
22+
-L . -L clients \
23+
--eval '(setq byte-compile-error-on-warn t)' \
24+
-f batch-byte-compile *.el
25+
26+
clean:
27+
rm -rf .cask *.elc
28+
29+
.PHONY: build ci compile clean

0 commit comments

Comments
 (0)