Last active
December 3, 2015 06:39
-
-
Save joeheyming/867a5f72295865d9da6b to your computer and use it in GitHub Desktop.
Revisions
-
joeheyming revised this gist
Dec 3, 2015 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,12 +8,16 @@ LOADPATH = -L . ELPA_DIR = \ .cask/$(shell $(EMACS) -Q --batch --eval '(princ emacs-version)')/elpa pre-test: rm -f *.elc $(CASK) exec $(EMACS) -batch -Q -L . -eval "(progn (setq byte-compile-error-on-warn t) (batch-byte-compile))" *.el test: elpa pre-test $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \ $(patsubst %,-l %,$(wildcard test/test-*.el)) \ -f ert-run-tests-batch-and-exit test/test-%: elpa pre-test $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \ -l $@ \ -f ert-run-tests-batch-and-exit -
joeheyming created this gist
Nov 12, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ .PHONY : test EMACS ?= emacs CASK ?= cask LOADPATH = -L . ELPA_DIR = \ .cask/$(shell $(EMACS) -Q --batch --eval '(princ emacs-version)')/elpa test: elpa $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \ $(patsubst %,-l %,$(wildcard test/test-*.el)) \ -f ert-run-tests-batch-and-exit test/test-%: elpa $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \ -l $@ \ -f ert-run-tests-batch-and-exit elpa: $(ELPA_DIR) $(ELPA_DIR): Cask $(CASK) install touch $@