branch: elpa/treepy
commit 1892c2e0b4853a50ba2e4be1b04de24586de8749
Author: Daniel Barreto <[email protected]>
Commit: Daniel Barreto <[email protected]>

    Add test runner and travis configuration
---
 .travis.yml  | 14 ++++++++++++++
 README.md    |  2 +-
 run-tests.sh | 15 +++++++++++++++
 3 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000..ed560e4cbf
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,14 @@
+language: emacs
+sudo: required
+cache: apt
+env:
+  - EVM_EMACS=emacs-24.5-bin
+  - EVM_EMACS=emacs-25.2-bin
+before_install:
+  - curl -fsSkL 
https://gist.githubusercontent.com/tonini/09a8bec7a0b2c219e0d7/raw > travis.sh 
&& source ./travis.sh
+  - evm install $EVM_EMACS --use --skip
+  - cask
+install:
+  - cask install
+script:
+  - ./run-travis-ci.sh
diff --git a/README.md b/README.md
index 44c2131e06..01c8cab110 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Treepy
+# treepy.el [![Build 
Status](https://travis-ci.org/volrath/treepy.el.svg?branch=master)](https://travis-ci.org/volrath/treepy.el)
 
 A set of generic functions for traversing tree data structures recursively or
 iteratively, based
diff --git a/run-tests.sh b/run-tests.sh
new file mode 100755
index 0000000000..792f6c0f78
--- /dev/null
+++ b/run-tests.sh
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+if [ -n "$TRAVIS" ]; then
+    cd "$(dirname "$0")"
+
+    ECUKES_EMACS=${EMACS:-$(which emacs)}
+    export ECUKES_EMACS
+
+    echo "*** Emacs version ***"
+    echo "ECUKES_EMACS = $ECUKES_EMACS"
+    "$ECUKES_EMACS" --version
+    echo
+fi
+
+cask exec ert-runner -L . -L test "$@"

Reply via email to