diff options
| author | Phillip Lord <phillip.lord@russet.org.uk> | 2019-06-02 17:25:56 +0100 |
|---|---|---|
| committer | Phillip Lord <phillip.lord@russet.org.uk> | 2019-06-02 17:25:56 +0100 |
| commit | 939f2a65b2e5097d56d3c4422aa3a11e4d71d6ff (patch) | |
| tree | 9118ee405563fb869a7c8a1d0e5350c4ea365184 /Makefile | |
| parent | 6959903b99fce6cbf4db93711e95117fd5cd879d (diff) | |
| download | org-drill-939f2a65b2e5097d56d3c4422aa3a11e4d71d6ff.tar.gz org-drill-939f2a65b2e5097d56d3c4422aa3a11e4d71d6ff.zip | |
Enable cask testing
- Update headers to standard
- Add Makefile, Cask and docker scripts
- Add test directory
- .gitignore
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 |
