Skip to content

Commit e0d6412

Browse files
ericdallobrotzeit
authored andcommitted
Add ci to Makefile
1 parent 43f71e3 commit e0d6412

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Makefile

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1+
SHELL := /usr/bin/env bash
2+
13
EMACS ?= emacs
2-
SHELL := /bin/bash
4+
CASK ?= cask
35

4-
all:
6+
build:
57
EMACS=$(EMACS) cask install
68
EMACS=$(EMACS) cask build
79
EMACS=$(EMACS) cask clean-elc
810

9-
test: all
11+
ci: build compile test clean
12+
13+
compile:
14+
@echo "Compiling..."
15+
@$(CASK) $(EMACS) -Q --batch \
16+
-L . \
17+
--eval '(setq byte-compile-error-on-warn t)' \
18+
-f batch-byte-compile \
19+
*.el
20+
21+
test:
1022
EMACS=$(EMACS) cask exec ert-runner
1123

12-
.PHONY: all test
24+
clean:
25+
EMACS=$(EMACS) cask clean-elc
26+
27+
.PHONY: build ci compile test clean

0 commit comments

Comments
 (0)