From 939f2a65b2e5097d56d3c4422aa3a11e4d71d6ff Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Sun, 2 Jun 2019 17:25:56 +0100 Subject: Enable cask testing - Update headers to standard - Add Makefile, Cask and docker scripts - Add test directory - .gitignore --- Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..68a9ccf --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +EMACS ?= emacs +CASK ?= cask + +-include makefile-local + +ifdef EMACS +EMACS_ENV=EMACS=$(EMACS) +endif + +all: + +install: + $(EMACS_ENV) $(CASK) install + +test: install just-test + +just-test: + $(EMACS_ENV) $(CASK) emacs --batch -q \ + --directory=. \ + --load assess-discover.el \ + --eval '(assess-discover-run-and-exit-batch t)' + +DOCKER_TAG=26 +test-cp: + docker run -it --rm --name docker-cp -v $(PWD):/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:$(DOCKER_TAG)-dev ./test-by-cp + +test-git: + docker run -it --rm --name docker-git -v $(PWD):/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:$(DOCKER_TAG)-dev ./test-from-git + +docker-test: + $(MAKE) test-git DOCKER_TAG=26.2 + $(MAKE) test-cp DOCKER_TAG=26.2 + $(MAKE) test-git DOCKER_TAG=25.3 + $(MAKE) test-cp DOCKER_TAG=25.3 + +.PHONY: test -- cgit v1.2.3