emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/treesit-fold ec4c14c7e2 029/417: Add makefile for CI


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold ec4c14c7e2 029/417: Add makefile for CI
Date: Mon, 1 Jul 2024 10:02:07 -0400 (EDT)

branch: elpa/treesit-fold
commit ec4c14c7e293b741eede5b173fa83dbd0b8762c6
Author: JenChieh <jcs090218@gmail.com>
Commit: JenChieh <jcs090218@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]