Skip to content

Commit

Permalink
Use undercover to report coverage to coveralls.io
Browse files Browse the repository at this point in the history
- Cask: Add undercover dependency for development
- dev/undercover.init: Do optional coverage reporting
- run-travis-ci.sh: Install Cask and dependencies
  • Loading branch information
sachac committed Feb 4, 2015
1 parent 1f85b51 commit 0120d5d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Cask
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
(source gnu)
(source melpa)

(package-file "s.el")

(development
(depends-on "undercover"))

2 changes: 2 additions & 0 deletions dev/undercover-init.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(when (require 'undercover nil t)
(undercover "s.el"))
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ if [ -z "$EMACS" ] ; then
EMACS="emacs"
fi

$EMACS -batch -l dev/ert.el -l dev/examples-to-tests.el -l s.el -l dev/examples.el -f ert-run-tests-batch-and-exit
$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
10 changes: 9 additions & 1 deletion run-travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ echo "EMACS =" $(which $EMACS)
$EMACS --version
echo

exec ./run-tests.sh
if [ "$EMACS" != "emacs23" ]; then
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
else
exec ./run-tests.sh
fi

0 comments on commit 0120d5d

Please sign in to comment.