-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (43 loc) · 1.41 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
EMACS ?= emacs
CASK ?= cask
-include makefile-local
ifdef EMACS
EMACS_ENV=EMACS=$(EMACS)
endif
all: robot-and-test
install:
$(EMACS_ENV) $(CASK) install
test: install just-test
all-test: all-robot-test test
build:
$(EMACS_ENV) $(CASK) build
robot-and-test: basic-robot-test 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=27.2
$(MAKE) test-cp DOCKER_TAG=27.2
$(MAKE) test-git DOCKER_TAG=26.3
$(MAKE) test-cp DOCKER_TAG=26.3
clean-elc:
$(CASK) clean-elc
all-robot-test: basic-robot-test leitner-robot-test all-card-robot-test spanish-robot-test
basic-robot-test: clean-elc
$(EMACS_ENV) ./robot/basic-run.sh $(SMALL)
leitner-robot-test: clean-elc
$(EMACS_ENV) ./robot/leitner-run.sh $(SMALL)
all-card-robot-test: clean-elc
$(EMACS_ENV) ./robot/all-card-run.sh $(SMALL)
spanish-robot-test: clean-elc
$(EMACS_ENV) ./robot/spanish-run.sh $(SMALL)
explainer-robot-test: clean-elc
$(EMACS_ENV) ./robot/explainer-run.sh $(SMALL)
.PHONY: test