branch: master
commit 6059dca5af3691a39929b8f33faaadf0e476e92b
Author: Jackson Ray Hamilton <[email protected]>
Commit: Jackson Ray Hamilton <[email protected]>
Add Travis CI.
---
.travis.yml | 24 ++++++++++++++++++++++++
Makefile | 8 +++++---
2 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..bb0a9e0
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,24 @@
+# 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}
diff --git a/Makefile b/Makefile
index b358e8d..c50712b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
+EMACS = emacs
+
all: clean compile test
bench:
- emacs -Q \
+ ${EMACS} -Q \
-L . \
-L lib \
-l context-coloring \
@@ -9,7 +11,7 @@ bench:
-f context-coloring-benchmark-run
compile:
- emacs -Q -batch \
+ ${EMACS} -Q -batch \
-L lib \
-f batch-byte-compile *.el lib/*.el
@@ -17,7 +19,7 @@ clean:
rm -f *.log benchmark/*.log *.elc lib/*.elc
test:
- emacs -Q -batch \
+ ${EMACS} -Q -batch \
-L . \
-L lib \
-l ert \