From 4dbe38c68f01f0e30cffac9500e86dbef08ce09b Mon Sep 17 00:00:00 2001 From: renan-ranelli Date: Mon, 24 Nov 2014 02:16:33 -0200 Subject: Add Makefile and test target --- .gitignore | 4 ++++ Makefile | 18 ++++++++++++++++++ bog-todo | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 454ca07..31d5d61 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ /bog-autoloads.el + +# Needed for `make test` +.downloads +dash.el diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ff1296a --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +EMACS := emacs +CURL := curl --silent + +DASH_URL := https://raw.githubusercontent.com/magnars/dash.el/master/dash.el + +.PHONY: test + +test: .downloads + ${EMACS} -Q --batch -L . \ + -l bog-tests \ + --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))" + +.downloads: + ${CURL} ${DASH_URL} > dash.el + touch .downloads + +clean: + @rm -rf maven-test-mode-*/ maven-test-mode-*.tar *.elc diff --git a/bog-todo b/bog-todo index 7cd0595..3921fa0 100644 --- a/bog-todo +++ b/bog-todo @@ -56,7 +56,7 @@ extensions (or maybe just take the extension from the original file). * Testing -** ENH Ability to run tests from makefile +** DONE Ability to run tests from makefile ** DONE Put some of the common setup in macros -- cgit v1.2.3