1
0
Fork 0

Split installing and testing packages into separate make targets

This commit is contained in:
Tom Willemse 2019-08-22 23:47:45 -07:00
parent 58caf38935
commit 2a6371296a

View file

@ -16,16 +16,21 @@ package-oni-conf:
--funcall package-initialize \ --funcall package-initialize \
--eval '(package-upload-file (car (file-expand-wildcards "oni-conf/dist/*.tar")))' --eval '(package-upload-file (car (file-expand-wildcards "oni-conf/dist/*.tar")))'
test-%: install-%:
emacs --batch \ emacs --batch \
--load oni-package.el \ --load oni-package.el \
--funcall package-initialize \ --funcall package-initialize \
--eval '(package-refresh-contents)' \ --eval '(package-refresh-contents)' \
--load ert \
--load "test/$*-test.el" \
--funcall package-initialize \
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \ $(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
--eval "(package-install-file \"$*.el\")" \ --eval "(package-install-file \"$*.el\")" \
test-%: install-%
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--load ert \
--load "test/$*-test.el" \
--eval "(setq ert-batch-backtrace-right-margin nil)" \
--funcall ert-run-tests-batch-and-exit --funcall ert-run-tests-batch-and-exit
clean: clean: