-
-
Notifications
You must be signed in to change notification settings - Fork 242
/
Makefile
68 lines (47 loc) · 1.37 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
emacs ?= emacs
CASK ?= cask
CASK_EXEC ?= ${CASK} exec
EL_SOURCES = *.el
SOURCES = ${EL_SOURCES}
INIT = test/init.el
INIT-DEVEL = test/init-devel.el
all: test
github-actions:
git clone https://github.com/cask/cask ~/.cask
PATH=${HOME}/.cask/bin:${PATH} cask install
PATH=${HOME}/.cask/bin:${PATH} ${CASK_EXEC} ert-runner
test: clean
${CASK_EXEC} ert-runner
unit:
${CASK_EXEC} ${emacs} -Q -batch -L "." -l ${INIT} -l org -l org-ref.el -l test/org-ref-test.el --eval "(ert t)"
orgtest:
${CASK_EXEC} ${emacs} -Q -batch -l ${INIT} -l test/org-test-setup.el -l test/org-ert.el -f org-ert-tangle-tests
mytest: orgtest
${CASK_EXEC} ${emacs} -Q -batch -l ${INIT} -l test/org-test-setup.el -l test/*-test.el -f ert-run-tests-batch-and-exit
compile:
${CASK} build
clean:
rm -f *.elc
github:
open http://github.com/jkitchin/org-ref
travis:
open https://travis-ci.org/jkitchin/org-ref
melpa:
open https://melpa.org/#/org-ref
package : ${SOURCES}
${CASK} package
no-user:
${CASK_EXEC} ${emacs} -Q --eval="(setq scimax-load-user-dir nil)" -l ${INIT}
ivy:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
-l ${INIT} \
tests/test-1.org
devel:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
-l ${INIT} \
-l ${INIT-DEVEL}
vanilla:
${CASK_EXEC} ${emacs} -Q -l ${INIT} tests/test-1.org
.PHONY: all test package clean-elc test-melpa