Skip to content

Commit

Permalink
Try to install emacs-snapshot from 3rd-party-PPA before travis build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnuessler committed Sep 27, 2012
1 parent e8253b4 commit 726ba9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
@@ -1,3 +1,7 @@
language: emacs-lisp
script: ./run-travis-ci.sh
before_install:
- sudo add-apt-repository -y ppa:cassou/emacs
- sudo apt-get update -qq
- sudo apt-get install -qq emacs-snapshot

11 changes: 9 additions & 2 deletions run-travis-ci.sh
@@ -1,13 +1,20 @@
#!/bin/sh

if [ `uname` = "Darwin" ]; then
# for local testing only
EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs"
elsif [ `which emacs-snapshot` != "" ]; then
EMACS="$(which emscs-snapshot)"
else
EMACS="$(which emacs)"
fi

echo "Using emacs: $EMACS"
echo "Found emacs: $EMACS"
$EMACS --version

$EMACS -batch -l ert -l jira-markup-mode.el -l jira-markup-mode-test.el -f ert-run-tests-batch-and-exit
$EMACS -batch \
-l ert \
-l jira-markup-mode.el \
-l jira-markup-mode-test.el \
-f ert-run-tests-batch-and-exit

0 comments on commit 726ba9e

Please sign in to comment.