Skip to content

Commit

Permalink
Install reformatter in run_tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimschmidt557 committed Dec 1, 2022
1 parent 4fd60ce commit 5cb84d3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@ else
echo "Running with EMACS=${EMACS}"
fi

${EMACS} --batch -l zig-mode.el -l tests.el -f ert-run-tests-batch-and-exit
# From https://github.com/jcollard/elm-mode/blob/master/Makefile
NEEDED_PACKAGES="reformatter"
INIT_PACKAGES="(progn \
(require 'package) \
(push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
(package-initialize) \
(dolist (pkg '(${NEEDED_PACKAGES})) \
(unless (package-installed-p pkg) \
(unless (assoc pkg package-archive-contents) \
(package-refresh-contents)) \
(package-install pkg))) \
)"

${EMACS} --eval "${INIT_PACKAGES}" --batch -l zig-mode.el -l tests.el -f ert-run-tests-batch-and-exit

0 comments on commit 5cb84d3

Please sign in to comment.