diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
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 |
