[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haml-mode fe83c65c1f 4/4: Merge pull request #42 from nex3
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haml-mode fe83c65c1f 4/4: Merge pull request #42 from nex3/actions-ci |
Date: |
Thu, 8 Jun 2023 16:01:59 -0400 (EDT) |
branch: elpa/haml-mode
commit fe83c65c1f002f7c36480b758727c1afbad9a1b2
Merge: 45a0b23db0 7a24193cc0
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>
Merge pull request #42 from nex3/actions-ci
Actions CI
---
.github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++
Makefile | 28 ++++++++++++++++++++++++++++
README.md | 4 ++++
haml-mode.el | 2 +-
4 files changed, 64 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..c3f248deab
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,31 @@
+name: CI
+
+on:
+ pull_request:
+ push:
+ paths-ignore:
+ - '**.md'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ emacs_version:
+ - 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@v3
+ - name: Run tests
+ run: make
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..8e33e4e853
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+EMACS ?= emacs
+
+# A space-separated list of required package names
+NEEDED_PACKAGES = package-lint
+
+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} --eval '(setq
package-lint-main-file "haml-mode.el")' -batch -f package-lint-batch-and-exit
*.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
diff --git a/README.md b/README.md
index b5f88de1d7..dd3d49e310 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
+[![MELPA
Status](http://melpa.org/packages/haml-mode-badge.svg)](http://melpa.org/#/haml-mode)
+[![MELPA Stable
Status](http://stable.melpa.org/packages/haml-mode-badge.svg)](http://stable.melpa.org/#/haml-mode)
+[![Build
Status](https://github.com/nex3/haml-mode/workflows/CI/badge.svg)](https://github.com/nex3/haml-mode/actions)
+
# haml-mode for Emacs
`haml-mode` is an Emacs major mode for use with
diff --git a/haml-mode.el b/haml-mode.el
index f70dde5bdc..8799eeb5b4 100644
--- a/haml-mode.el
+++ b/haml-mode.el
@@ -4,7 +4,7 @@
;; Author: Natalie Weizenbaum
;; URL: https://github.com/nex3/haml-mode
-;; Package-Requires: ((emacs "24") (cl-lib "0.5"))
+;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
;; Package-Version: 3.2.1
;; Created: 2007-03-08
;; By: Natalie Weizenbaum
- [nongnu] elpa/haml-mode updated (45a0b23db0 -> fe83c65c1f), ELPA Syncer, 2023/06/08
- [nongnu] elpa/haml-mode 6e93932061 2/4: Add simple CI with Actions (byte-compile, package-lint), ELPA Syncer, 2023/06/08
- [nongnu] elpa/haml-mode 7a24193cc0 3/4: Depend on Emacs 24.1, not 24, to appease package-lint, ELPA Syncer, 2023/06/08
- [nongnu] elpa/haml-mode fe83c65c1f 4/4: Merge pull request #42 from nex3/actions-ci,
ELPA Syncer <=
- [nongnu] elpa/haml-mode f1cb847f27 1/4: Add MELPA badges, ELPA Syncer, 2023/06/08