--- /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}
+EMACS = emacs
+
all: clean compile test
bench:
- emacs -Q \
+ ${EMACS} -Q \
-L . \
-L lib \
-l context-coloring \
-f context-coloring-benchmark-run
compile:
- emacs -Q -batch \
+ ${EMACS} -Q -batch \
-L lib \
-f batch-byte-compile *.el lib/*.el
rm -f *.log benchmark/*.log *.elc lib/*.elc
test:
- emacs -Q -batch \
+ ${EMACS} -Q -batch \
-L . \
-L lib \
-l ert \