aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e04c1b0ad43544a0a0409472ea3b798073ec06f2 (plain) (blame)
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
# This makefile runs the tests as Travis runs them.  Be sure to test
# locally before you push if you are under the impression that the
# patch should work.  This will cut down on the number of commits in
# the repository that, essentially, patch patches.
#
# To test Emacs 24.1, for example, use
#
#     make 1
#
# To test on all versions, of course, simply use
#
#     make
#
# or
#
#     make all
#

VERSIONS = 1 2 3 4

all :: $(VERSIONS)

$(VERSIONS) :: clean
	evm install emacs-24.$@-bin --skip || true
	evm use emacs-24.$@-bin
	emacs --version
	cask install
	emacs --batch -L . -l ert -l test/tests.el -f ert-run-tests-batch-and-exit

clean:
	rm -rf .sx/
	cask clean-elc

install_cask:
	curl -fsSkL https://raw.github.com/cask/cask/master/go | python

install_evm:
	curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash