]> code.delx.au - gnu-emacs-elpa/commitdiff
Add Travis CI.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 29 Dec 2014 11:31:13 +0000 (03:31 -0800)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 29 Dec 2014 11:31:13 +0000 (03:31 -0800)
.travis.yml [new file with mode: 0644]
Makefile

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..bb0a9e0
--- /dev/null
@@ -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}
index b358e8d0afb3c12564420728efa993b0c7c6ea85..c50712bcc449881e6c014f005b3738634c5ee739 100644 (file)
--- 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 \