branch: elpa/treesit-fold
commit ec4c14c7e293b741eede5b173fa83dbd0b8762c6
Author: JenChieh <[email protected]>
Commit: JenChieh <[email protected]>
Add makefile for CI
---
Makefile | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..c71a00a026
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+SHELL := /usr/bin/env bash
+
+EMACS ?= emacs
+CASK ?= cask
+
+PKG-FILES := tree-sitter-fold.el
+
+TEST-FILES := $(shell ls test/tree-sitter-fold-*.el)
+
+.PHONY: clean checkdoc lint unix-build unix-compile unix-test
+
+unix-ci: clean unix-build unix-compile
+
+unix-build:
+ $(CASK) install
+
+unix-compile:
+ @echo "Compiling..."
+ @$(CASK) $(EMACS) -Q --batch \
+ -L . \
+ --eval '(setq byte-compile-error-on-warn t)' \
+ -f batch-byte-compile $(PKG-FILES)
+
+unix-test:
+ @echo "Testing..."
+ $(CASK) exec ert-runner -L . $(LOAD-TEST-FILES) -t '!no-win' -t '!org'
+
+clean:
+ rm -rf .cask *.elc