Skip to content

Commit

Permalink
Use Cask only for Emacs 24+
Browse files Browse the repository at this point in the history
  • Loading branch information
sachac committed Feb 4, 2015
1 parent f08e005 commit 9d1769b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ before_install:
# Update and install the Emacs for our environment
- sudo apt-get update -qq
- sudo apt-get install -qq -yy ${EMACS}-nox ${EMACS}-el
- curl -fsSLo /tmp/cask-master.zip https://github.com/cask/cask/archive/master.zip
- sudo unzip -qq -d /opt /tmp/cask-master.zip
- sudo ln -sf /opt/cask-master/bin/cask /usr/local/bin/cask
- cask
env:
- EMACS=emacs23
- EMACS=emacs24
Expand Down
4 changes: 2 additions & 2 deletions dev/undercover-init.el
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(require 'undercover)
(undercover "s.el")
(when (require 'undercover nil t)
(undercover "s.el"))
11 changes: 10 additions & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@ if [ -z "$EMACS" ] ; then
EMACS="emacs"
fi

cask exec $EMACS -batch -l dev/ert.el -l dev/examples-to-tests.el -l dev/undercover-init.el -l s.el -l dev/examples.el -f ert-run-tests-batch-and-exit
if [ "$EMACS" == "emacs23" ]; then
$EMACS -batch -l dev/ert.el -l dev/examples-to-tests.el -l dev/undercover-init.el -l s.el -l dev/examples.el -f ert-run-tests-batch-and-exit
else
curl -fsSLo /tmp/cask-master.zip https://github.com/cask/cask/archive/master.zip
sudo unzip -qq -d /opt /tmp/cask-master.zip
sudo ln -sf /opt/cask-master/bin/cask /usr/local/bin/cask
cask
cask exec $EMACS -batch -l dev/ert.el -l dev/examples-to-tests.el -l dev/undercover-init.el -l s.el -l dev/examples.el -f ert-run-tests-batch-and-exit
fi

0 comments on commit 9d1769b

Please sign in to comment.