]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
Kill any scopifier server before running the tests.
[gnu-emacs-elpa] / Makefile
index bd82b883addfc194897e9c657a83e5e8f5022cd4..0b5c237819e19a0382b93079fb6244a9338ae4f9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 CASK = cask
 EMACS = emacs
 DEPENDENCIES = .cask/
+SCOPIFIER_PORT = $$(lsof -t -i:6969)
+KILL_SCOPIFIER = if [ -n "${SCOPIFIER_PORT}" ]; then kill ${SCOPIFIER_PORT}; fi
 
 all: uncompile compile test
 
@@ -26,6 +28,7 @@ ${DEPENDENCIES}:
        ${CASK}
 
 test: ${DEPENDENCIES}
+       ${KILL_SCOPIFIER}
        ${CASK} exec ${EMACS} -Q -batch \
        -L . \
        -l ert \
@@ -36,6 +39,7 @@ test: ${DEPENDENCIES}
        -f ert-run-tests-batch-and-exit
 
 cover: ${DEPENDENCIES}
+       ${KILL_SCOPIFIER}
        ${CASK} exec ${EMACS} -Q -batch \
        -L . \
        -l ert \