aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2022-02-21 17:59:29 -0500
committerKyle Meyer <kyle@kyleam.com>2022-02-21 18:01:00 -0500
commitc657cfacc0201c7c298d7987b5b6a62b4d4a2284 (patch)
tree42071b3322bae09cade7e3f1c0791d6e487e8ddc /Makefile
parente735cccc4f7032e6b4bbae1a23c4906d89e8ea10 (diff)
downloadsnakemake-mode-c657cfacc0201c7c298d7987b5b6a62b4d4a2284.tar.gz
ci: Switch to GitHub Actions
After GitHub Actions were available, this repository kept using Travis because it worked well enough, especially given this package is very much in maintenance mode. However, going forward it'd be nice to use purcell/setup-emacs action to test various Emacs versions. Don't bother testing against Emacs 24 because the next release will bump the minimum Emacs version to at least 25.1. While touching this setup, drop the Makefile target for downloading dependencies and instead just expect dependencies to be one level up from the snakemake-mode checkout.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index bcd2893..d93192a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-LOAD_PATH = -L .deps -L .
+LOAD_PATH = -L ../magit-popup -L ../dash.el -L .
EMACS = emacs
BATCH = $(EMACS) -Q --batch $(LOAD_PATH)
CURL := curl --silent
@@ -8,14 +8,11 @@ els := snakemake.el snakemake-mode.el
elcs := $(patsubst %.el, %.elc, $(els))
AUTOLOADS_FILE = snakemake-autoloads.el
-DASH_URL := https://raw.githubusercontent.com/magnars/dash.el/master/dash.el
-POPUP_URL := https://raw.githubusercontent.com/magit/magit-popup/master/magit-popup.el
-
.PHONY: all
all: $(elcs) $(AUTOLOADS_FILE)
.PHONY: test
-test: | .deps
+test:
@$(BATCH) -l snakemake-test \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
@@ -25,18 +22,9 @@ $(AUTOLOADS_FILE): $(els)
(generated-autoload-file \"$(CURDIR)/$@\")) \
(update-directory-autoloads \"$(CURDIR)/\"))"
-.deps:
- mkdir -p .deps
- $(CURL) $(DASH_URL) > .deps/dash.el
- $(CURL) $(POPUP_URL) > .deps/magit-popup.el
-
-%.elc: %.el | .deps
+%.elc: %.el
@$(BATCH) -f batch-byte-compile $<
.PHONY: clean
clean:
$(RM) $(elcs) $(AUTOLOADS_FILE)
-
-.PHONY: clean-all
-clean-all: clean
- $(RM) -r .deps