forked from phillord/assess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (57 loc) · 1.73 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
EMACS ?= emacs
CASK ?= cask
-include makefile-local
ifdef EMACS
EMACS_ENV=EMACS=$(EMACS)
endif
all: install test
install:
$(EMACS_ENV) $(CASK) install
test: install just-test
package:
$(EMACS_ENV) $(CASK) package
just-test:
$(EMACS_ENV) $(CASK) emacs --batch -q \
--directory=. \
--load assess-discover.el \
--eval '(assess-discover-run-and-exit-batch t)'
.PHONY: test dist
export:
export
multi-test:
make EMACS=$(EMACSES)/master/src/emacs test
make EMACS=$(EMACSES)/emacs-26.1/src/emacs test
make EMACS=$(EMACSES)/emacs-25.3/src/emacs test
make EMACS=$(EMACSES)/emacs-24.5/src/emacs test
make EMACS=$(EMACSES)/emacs-24.4/src/emacs test
elpa-sandbox:
mkdir elpa-sandbox
cask-free-test: elpa-sandbox
emacs --batch -q \
--directory=. \
--load test/local-sandbox.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
multi-test-cp:
$(MAKE) test-cp DOCKER_TAG=26.2
$(MAKE) test-cp DOCKER_TAG=26.1
$(MAKE) test-cp DOCKER_TAG=25.3
$(MAKE) test-cp DOCKER_TAG=25.2
$(MAKE) test-cp DOCKER_TAG=25.1
$(MAKE) test-cp DOCKER_TAG=24.5
$(MAKE) test-cp DOCKER_TAG=24.4
$(MAKE) test-cp DOCKER_TAG=master
multi-test-git:
$(MAKE) test-git DOCKER_TAG=27.0
$(MAKE) test-git DOCKER_TAG=26.3
$(MAKE) test-git DOCKER_TAG=26.2
$(MAKE) test-git DOCKER_TAG=26.1
$(MAKE) test-git DOCKER_TAG=25.3
$(MAKE) test-git DOCKER_TAG=25.2
$(MAKE) test-git DOCKER_TAG=25.1
$(MAKE) test-git DOCKER_TAG=24.5
$(MAKE) test-git DOCKER_TAG=24.4