Skip to content

Commit cd9680f

Browse files
author
Greg Hendershott
committed
Test against Emacs 24.3 and Emacs snapshot
1 parent bc3152a commit cd9680f

File tree

2 files changed

+50
-27
lines changed

2 files changed

+50
-27
lines changed

.travis.yml

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
language: c
1+
language: generic
22

33
env:
4-
- RACKET_VERSION=5.3.5
5-
- RACKET_VERSION=5.3.6
6-
- RACKET_VERSION=6.0
7-
- RACKET_VERSION=6.0.1
8-
- RACKET_VERSION=6.1
9-
- RACKET_VERSION=6.1.1
10-
- RACKET_VERSION=6.2
11-
- RACKET_VERSION=HEAD
12-
- RACKET_VERSION=SCOPE_SNAPSHOT
4+
# Emacs 24.3
5+
- EMACS=emacs-24, RACKET_VERSION=5.3.5
6+
- EMACS=emacs-24, RACKET_VERSION=5.3.6
7+
- EMACS=emacs-24, RACKET_VERSION=6.0
8+
- EMACS=emacs-24, RACKET_VERSION=6.0.1
9+
- EMACS=emacs-24, RACKET_VERSION=6.1
10+
- EMACS=emacs-24, RACKET_VERSION=6.1.1
11+
- EMACS=emacs-24, RACKET_VERSION=6.2
12+
- EMACS=emacs-24, RACKET_VERSION=HEAD
13+
- EMACS=emacs-24, RACKET_VERSION=SCOPE_SNAPSHOT
14+
# Emacs snapshot
15+
- EMACS=emacs-snapshot, RACKET_VERSION=5.3.5
16+
- EMACS=emacs-snapshot, RACKET_VERSION=5.3.6
17+
- EMACS=emacs-snapshot, RACKET_VERSION=6.0
18+
- EMACS=emacs-snapshot, RACKET_VERSION=6.0.1
19+
- EMACS=emacs-snapshot, RACKET_VERSION=6.1
20+
- EMACS=emacs-snapshot, RACKET_VERSION=6.1.1
21+
- EMACS=emacs-snapshot, RACKET_VERSION=6.2
22+
- EMACS=emacs-snapshot, RACKET_VERSION=HEAD
23+
- EMACS=emacs-snapshot, RACKET_VERSION=SCOPE_SNAPSHOT
1324

1425
matrix:
1526
allow_failures:
@@ -18,20 +29,28 @@ matrix:
1829
fast_finish: true
1930

2031
before_install:
21-
## Racket
22-
- git clone https://github.com/greghendershott/travis-racket.git
23-
- cat travis-racket/install-racket.sh | bash # pipe to bash not sh!
24-
- export PATH=/usr/racket/bin:$PATH
32+
## Racket
33+
- git clone https://github.com/greghendershott/travis-racket.git
34+
- cat travis-racket/install-racket.sh | bash # pipe to bash not sh!
35+
- export PATH=/usr/racket/bin:$PATH
2536

26-
## Emacs
27-
- sudo add-apt-repository -y ppa:cassou/emacs
28-
- sudo apt-get update -qq
29-
- sudo apt-get -f install
30-
- sudo apt-get install -qq emacs24 emacs24-el
37+
## Emacs
38+
- if [ "$EMACS" = 'emacs-24.3' ]; then
39+
sudo add-apt-repository -y ppa:cassou/emacs &&
40+
sudo apt-get -qq update &&
41+
sudo apt-get -qq -f install &&
42+
sudo apt-get -qq install emacs24 &&
43+
sudo apt-get -qq install emacs24-el;
44+
fi
45+
- if [ "$EMACS" = 'emacs-snapshot' ]; then
46+
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa &&
47+
sudo apt-get -qq update &&
48+
sudo apt-get -qq -f install &&
49+
sudo apt-get -qq install emacs-snapshot &&
50+
sudo apt-get -qq install emacs-snapshot-el;
51+
fi
3152

3253
script:
33-
- make deps
34-
- make compile
35-
- make test
36-
37-
54+
- make deps EMACSBIN=$EMACS
55+
- make compile EMACSBIN=$EMACS
56+
- make test EMACSBIN=$EMACS

makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
EMACS=$(shell if [ -z "`which emacs`" ]; then echo "Emacs executable not found"; exit 1; else echo emacs; fi)
1+
ifdef @$(EMACSBIN)
2+
EMACSBIN = @$(EMACSBIN)
3+
else
4+
EMACSBIN = $(shell if [ -z "`which emacs`" ]; then echo "Emacs executable not found"; exit 1; else echo emacs; fi)
5+
endif
26

3-
BATCHEMACS=${EMACS} --batch --no-site-file -q -eval '(progn (add-to-list (quote load-path) "${PWD}/") (package-initialize))'
7+
BATCHEMACS = $(EMACSBIN) --batch --no-site-file -q -eval '(progn (add-to-list (quote load-path) "${PWD}/") (package-initialize))'
48

59
BYTECOMP = $(BATCHEMACS) -eval '(progn (require (quote bytecomp)) (setq byte-compile-warnings t) (setq byte-compile-error-on-warn t))' -f batch-byte-compile
610

@@ -38,7 +42,7 @@ compile: clean \
3842
# deps automatically as a result of our Package-Requires in
3943
# racket-mode.el)
4044
deps:
41-
$(BATCHEMACS) -eval '(progn (add-to-list (quote package-archives) (cons "melpa" "http://melpa.org/packages/")) (package-initialize) (package-refresh-contents) (package-install (quote dash)) (package-install (quote faceup)) (package-install (quote s)))'
45+
$(BATCHEMACS) -eval '(progn (add-to-list (quote package-archives) (cons "melpa" "http://melpa.org/packages/")) (package-initialize) (package-refresh-contents) (package-install (quote faceup)) (package-install (quote s)))'
4246

4347
doc:
4448
$(BATCHEMACS) -l racket-make-doc.el -f racket-make-doc/write-reference-file

0 commit comments

Comments
 (0)