emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/xr 1c4934d 01/12: Add github auto-test infrastructure


From: Mattias Engdegård
Subject: [elpa] externals/xr 1c4934d 01/12: Add github auto-test infrastructure
Date: Mon, 30 Nov 2020 04:32:23 -0500 (EST)

branch: externals/xr
commit 1c4934dd1d3347cc179ca19b97de29cd4837c2aa
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@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 $^



reply via email to

[Prev in Thread] Current Thread [Next in Thread]