--- /dev/null
+# https://github.com/rolandwalker/emacs-travis
+
+language: emacs-lisp
+
+env:
+ matrix:
+ - EMACS=emacs24
+ - EMACS=emacs-snapshot
+
+install:
+ - if [ "$EMACS" = "emacs24" ]; then
+ sudo add-apt-repository -y ppa:cassou/emacs &&
+ sudo apt-get update -qq &&
+ sudo apt-get install -qq emacs24 emacs24-el;
+ fi
+ - if [ "$EMACS" = "emacs-snapshot" ]; then
+ sudo add-apt-repository -y ppa:cassou/emacs &&
+ sudo apt-get update -qq &&
+ sudo apt-get install -qq emacs-snapshot &&
+ sudo apt-get install -qq emacs-snapshot-el emacs-snapshot-gtk;
+ fi
+
+script:
+ make test EMACS=${EMACS}
# -*- Makefile -*-
+EMACS = emacs
+
# Compile with noninteractive and relatively clean environment.
BATCHFLAGS = -batch -q --no-site-file
OBJS = $(SRCS:.el=.elc)
%.elc: %.el
- emacs $(BATCHFLAGS) -f batch-byte-compile $^
+ ${EMACS} $(BATCHFLAGS) -f batch-byte-compile $^
all: $(OBJS)
# custom build (require loads)
js2-imenu-extras.elc: js2-mode.elc
- emacs $(BATCHFLAGS) -l ./js2-mode.elc -f batch-byte-compile $*.el
+ ${EMACS} $(BATCHFLAGS) -l ./js2-mode.elc -f batch-byte-compile $*.el
test:
- emacs $(BATCHFLAGS) -l js2-mode.el -l tests/parser.el\
- -l tests/indent.el -l tests/externs.el -f ert-run-tests-batch
+ ${EMACS} $(BATCHFLAGS) -l js2-mode.el -l tests/parser.el\
+ -l tests/indent.el -l tests/externs.el -f ert-run-tests-batch-and-exit
-About
+About [![Build Status](https://travis-ci.org/mooz/js2-mode.png?branch=master)](https://travis-ci.org/mooz/js2-mode)
======
Improved JavaScript editing mode for GNU Emacs ([description here](http://elpa.gnu.org/packages/js2-mode.html)).