Skip to content

Commit 54f6b40

Browse files
committed
Add makefile for CI
1 parent e8f0739 commit 54f6b40

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+
PKG-FILES := fextern.el
7+
8+
TEST-FILES := $(shell ls test/fextern-*.el)
9+
10+
.PHONY: clean checkdoc lint build compile unix-test
11+
12+
ci: clean build compile
13+
14+
build:
15+
$(CASK) install
16+
17+
compile:
18+
@echo "Compiling..."
19+
@$(CASK) $(EMACS) -Q --batch \
20+
-L . \
21+
--eval '(setq byte-compile-error-on-warn t)' \
22+
-f batch-byte-compile $(PKG-FILES)
23+
24+
unix-test:
25+
@echo "Testing..."
26+
$(CASK) exec ert-runner -L . $(LOAD-TEST-FILES) -t '!no-win' -t '!org'
27+
28+
clean:
29+
rm -rf .cask *.elc

0 commit comments

Comments
 (0)