Commit 7b8a9e5a authored by Erik Hetzner's avatar Erik Hetzner

Restructure tests to allow testing multiple org versions

parent ac3946f4
......@@ -4,9 +4,9 @@
(depends-on "request-deferred")
(depends-on "org-plus-contrib")
(package-file "zotxt.el")
(package-file "../../zotxt.el")
(files "zotxt.el" "org-zotxt.el")
(files "../../zotxt.el" "../../org-zotxt.el")
(development
(depends-on "ert-runner")
......
../../org-zotxt.el
\ No newline at end of file
../../test/
\ No newline at end of file
../../zotxt.el
\ No newline at end of file
#/bin/sh -ex
# ensure no compile errors
rm -f ./*.elc
cask
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
bundle install --quiet
ruby mock-server.rb -p 33119 &
MOCK_PID=$!
sleep 2
cask exec ert-runner
cask exec ecukes
for CASK_DIR in casks/* ; do
cd "$CASK_DIR" || exit
cask
# ensure no compile errors
rm -f ./*.elc
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
cask exec ert-runner
cask exec ecukes
cd ../.. || exit
done
kill "$MOCK_PID"
while (kill -0 "$MOCK_PID" > /dev/null 2> /dev/null) ; do
sleep 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment