run-tests.sh 711 Bytes
Newer Older
Erik Hetzner committed
1
#/bin/sh -e
Erik Hetzner committed
2

Erik Hetzner committed
3
bundle install --quiet
Erik Hetzner committed
4
ruby mock-server.rb -p 33119 >/dev/null 2>/dev/null &
5 6
MOCK_PID=$!
sleep 2
7 8

for CASK_DIR in casks/* ; do
Erik Hetzner committed
9
    printf "Testing %s\n" "$(basename "${CASK_DIR}")"
10
    cd "$CASK_DIR" || exit
Erik Hetzner committed
11
    cask clean-elc
12 13 14 15 16 17
    cask
    # ensure no compile errors
    cask exec emacs -Q --batch -L . --eval '(setq byte-compile-error-on-warn t)' \
         -f batch-byte-compile zotxt.el
    cask exec emacs -Q --batch -L . --eval '(setq byte-compile-error-on-warn t)' \
         -f batch-byte-compile org-zotxt.el
Erik Hetzner committed
18 19
    cask exec ert-runner --quiet
    cask exec ecukes --quiet
20 21 22
    cd ../.. || exit
done

Erik Hetzner committed
23 24
kill "$MOCK_PID"
while (kill -0 "$MOCK_PID" > /dev/null 2> /dev/null) ; do
Erik Hetzner committed
25 26
    sleep 1
done