branch: externals/xr commit 1c4934dd1d3347cc179ca19b97de29cd4837c2aa Author: Mattias Engdegård <matti...@acm.org> Commit: Mattias Engdegård <matti...@acm.org>
Add github auto-test infrastructure Very experimental. --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ Makefile | 19 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..da6de74 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: test + +on: + push: + paths-ignore: + - '**README*' + pull_request: + paths-ignore: + - '**README*' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + - "26.3" + - snapshot + steps: + - name: Set up Emacs + uses: purcell/setup-emacs@master + with: + version: ${{matrix.emacs_version}} + + - name: Check out xr + uses: actions/checkout@v2 + + - name: Test + run: make build check diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e95b6c7 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +EMACS=emacs +EMFLAGS=-Q -batch -L . +BYTECOMPFLAGS=--eval '(setq byte-compile-error-on-warn t)' + +EL=$(wildcard *.el) +ELC=$(EL:.el=.elc) + +.PHONY: build check clean + +build: $(ELC) + +clean: + rm -f $(ELC) + +check: + $(EMACS) $(EMFLAGS) -l xr-test -f ert-run-tests-batch-and-exit + +%.elc: %.el + $(EMACS) $(EMFLAGS) $(BYTECOMPFLAGS) -f batch-byte-compile $^