diff options
| author | JenChieh <jcs090218@gmail.com> | 2024-04-08 17:10:48 -0700 |
|---|---|---|
| committer | Youmu <condy0919@gmail.com> | 2024-04-11 10:24:04 +0800 |
| commit | c64b058fbe77560d3526d2ac8110d43845d65323 (patch) | |
| tree | 85451184cb377eacb0f57adfc3d1670faccf1bf0 /Makefile | |
| parent | ca977acb83c0dd01fc57dbc6f3d3111e89f4ec9d (diff) | |
ci: Use Eask to test macos and windows
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 53 |
1 files changed, 13 insertions, 40 deletions
@@ -1,50 +1,23 @@ -EMACS ?= emacs -CASK ?= cask - -LOADPATH = -L . -TESTPATH = -L ./test - -ELPA_DIR = \ - .cask/$(shell $(EMACS) -Q --batch --eval '(princ emacs-version)')/elpa +EASK ?= eask compile: - $(CASK) exec $(EMACS) -Q -batch \ - -L . \ - --eval "(setq evil-want-integration nil)" \ - --eval "(setq evil-want-keybinding nil)" \ - --eval "(setq byte-compile-docstring-max-column 200)" \ - --eval "(setq byte-compile-error-on-warn t)" \ - -f batch-byte-compile *.el modes/*/*.el + $(EASK) compile -lint: - $(CASK) exec $(EMACS) -Q -batch \ - --eval "(require 'package)" \ - --eval "(push '(\"melpa\" . \"http://melpa.org/packages/\") package-archives)" \ - --eval "(package-initialize)" \ - --eval "(package-refresh-contents)" \ - -l package-lint.el \ - --eval "(advice-add 'package-lint--check-eval-after-load :around 'ignore)" \ - --eval "(advice-add 'package-lint--check-version-regexp-list :around 'ignore)" \ - --eval "(advice-add 'package-lint--check-symbol-separators :around 'ignore)" \ - --eval "(advice-add 'package-lint--check-defs-prefix :around 'ignore)" \ - --eval "(advice-add 'package-lint--check-provide-form :around 'ignore)" \ - -f package-lint-batch-and-exit *.el modes/*/*.el +install: + $(EASK) install-deps --dev + $(EASK) package + $(EASK) install -test: elpa - $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(TESTPATH) \ --l evil-collection-test.el -l evil-collection-magit-tests.el -f ert-run-tests-batch-and-exit +lint: + $(EASK) lint package -magit-test: elpa - $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(TESTPATH) \ --l evil-collection-magit-tests.el -f ert-run-tests-batch-and-exit +test: install + $(EASK) test ert ./test/evil-collection-test.el -elpa: $(ELPA_DIR) -$(ELPA_DIR): Cask - $(CASK) install - mkdir -p $(ELPA_DIR) - touch $@ +magit-test: install + $(EASK) test ert ./test/evil-collection-magit-tests.el -.PHONY: compile lint test elpa +.PHONY: compile lint test # Local Variables: # tab-width: 8 |
