-
Notifications
You must be signed in to change notification settings - Fork 55
/
Makefile
50 lines (35 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
CASK?=cask
-include makefile-local
ifdef EMACS
EMACS_ENV=EMACS=$(EMACS)
endif
install:
$(EMACS_ENV) $(CASK) install
## "cask emacs" is currently only on my fork!
gen-src: install
$(EMACS_ENV) $(CASK) emacs --debug --script script/build.el -- gen-src
clean-src:
$(EMACS_ENV) $(CASK) emacs --script script/build.el -- clean-src
html: gen-src
$(EMACS_ENV) $(CASK) emacs --script script/build.el -- gen-html
commit-test:
lein test :commit
travis:
$(EMACS_ENV) $(MAKE) html 2>&1 | grep --invert-match "newer than byte-compiled file"
DOCKER_TAG=openjdk-11-lein
PROFILE=default
test-cp:
docker run -it --rm --name docker-cp -v $(PWD):/usr/src/app -w /usr/src/app --entrypoint=/bin/bash clojure:$(DOCKER_TAG) ./test-by-cp $(PROFILE)
multi-test-cp:
$(MAKE) test-cp DOCKER_TAG=openjdk-11-lein PROFILE=default
$(MAKE) test-cp DOCKER_TAG=openjdk-11-lein PROFILE=1.9
$(MAKE) test-cp DOCKER_TAG=openjdk-8-lein PROFILE=default
$(MAKE) test-cp DOCKER_TAG=openjdk-8-lein PROFILE=1.9
test-git:
docker run -it --rm --name docker-cp -v $(PWD):/usr/src/app -w /usr/src/app --entrypoint=/bin/bash clojure:$(DOCKER_TAG) ./test-by-git $(PROFILE)
multi-test-git:
$(MAKE) test-git DOCKER_TAG=openjdk-11-lein PROFILE=default
$(MAKE) test-git DOCKER_TAG=openjdk-11-lein PROFILE=1.9
$(MAKE) test-git DOCKER_TAG=openjdk-8-lein PROFILE=default
$(MAKE) test-git DOCKER_TAG=openjdk-8-lein PROFILE=1.9
.PHONY: test travis commit-test clean-src html