diff --git a/run-tests.sh b/run-tests.sh new file mode 100644 index 0000000..6c5b43f --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,16 @@ +#!/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 emacs --batch -Q -l package-lint.el -f package-lint-batch-and-exit autoscratch-mode.el +cask exec ert-runner -L . -L test "$@"