branch: elpa/flymake-pyrefly commit 7326a9c525983b5f3b9d473469cb03fee3a3b061 Author: Boris Shminke <bo...@shminke.com> Commit: Boris Shminke <bo...@shminke.com>
add Makefile --- .github/workflows/main.yml | 5 ++++- Makefile | 20 ++++++++++++++++++++ run-tests.sh | 5 ----- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0297182c48..79c2b809d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,4 +25,7 @@ jobs: - name: Test with Emacs run: | export PYREFLY_BIN_DIR=$(pwd)/.venv/bin - ./run-tests.sh + make test + - name: Compile + run: | + make compile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..bdd2a968fd --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +ALL_TARGETS = help clean test compile +EMACS_TEST_JUNIT_REPORT=1 + +.PHONY: ${ALL_TARGETS} + +help: + @echo Targets: + @for t in ${ALL_TARGETS}; do echo "- "$$t; done + +clean: + @rm -rf *.elc test/*.elc + +test: + emacs --batch -L . -L tests -l test-flymake-pyrefly \ + -f ert-run-tests-batch-and-exit + +compile: + emacs --batch -L . \ + --eval "(setq byte-compile-error-on-warn t)" \ + -f batch-byte-compile flymake-pyrefly.el diff --git a/run-tests.sh b/run-tests.sh deleted file mode 100755 index 97a6b0c193..0000000000 --- a/run-tests.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -export EMACS_TEST_JUNIT_REPORT=1 -emacs --batch -L . -L tests -l test-flymake-pyrefly \ - -f ert-run-tests-batch-and-exit