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

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

[nongnu] elpa/symbol-overlay 7cef46c6c9 4/6: Add basic CI with byte comp


From: ELPA Syncer
Subject: [nongnu] elpa/symbol-overlay 7cef46c6c9 4/6: Add basic CI with byte compilation and package-lint check
Date: Thu, 15 Dec 2022 12:59:40 -0500 (EST)

branch: elpa/symbol-overlay
commit 7cef46c6c9787d634599fc305d58114c4fb66779
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Add basic CI with byte compilation and package-lint check
---
 .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++
 Makefile                   | 28 ++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..e95f8b7444
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,33 @@
+name: CI
+
+on:
+  pull_request:
+  push:
+    paths-ignore:
+    - '**.md'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        emacs_version:
+          - 24.3
+          - 24.5
+          - 25.1
+          - 25.3
+          - 26.1
+          - 26.3
+          - 27.1
+          - 27.2
+          - 28.1
+          - 28.2
+          - snapshot
+    steps:
+    - uses: purcell/setup-emacs@master
+      with:
+        version: ${{ matrix.emacs_version }}
+
+    - uses: actions/checkout@v2
+    - name: Run tests
+      run: make
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..9bb1cd306f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+EMACS ?= emacs
+
+# A space-separated list of required package names
+NEEDED_PACKAGES = package-lint seq
+
+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))) \
+  )"
+
+all: compile package-lint clean-elc
+
+package-lint:
+       ${EMACS} -Q --eval ${INIT_PACKAGES} -batch -f 
package-lint-batch-and-exit symbol-overlay.el
+
+compile: clean-elc
+       ${EMACS} -Q --eval ${INIT_PACKAGES} -L . -batch -f batch-byte-compile 
*.el
+
+clean-elc:
+       rm -f f.elc
+
+.PHONY:        all compile clean-elc package-lint



reply via email to

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