branch: elpa/exec-path-from-shell
commit 1a43e8aea5c3ff09bc6dda098d54d744e210c899
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>
Add simple CI with Actions
---
.github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++
Makefile | 28 ++++++++++++++++++++++++++++
README.md | 1 +
3 files changed, 62 insertions(+)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..e567a128ec
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,33 @@
+name: CI
+
+on:
+ push:
+ paths-ignore:
+ - '**/*.md'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ emacs_version:
+ - 24.1
+ - 24.2
+ - 24.3
+ - 24.4
+ - 24.5
+ - 25.1
+ - 25.2
+ - 25.3
+ - 26.1
+ - 26.2
+ - 26.3
+ - snapshot
+ steps:
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+
+ - uses: actions/checkout@v1
+ - name: Run tests
+ run: make
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..0b003f961e
--- /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} -batch -f
package-lint-batch-and-exit exec-path-from-shell.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 f43cb3943f..df89f08785 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
[](http://melpa.milkbox.net/#/exec-path-from-shell)
[](http://stable.melpa.org/#/exec-path-from-shell)
+[](https://github.com/purcell/exec-path-from-shell/actions)
<a href="https://www.patreon.com/sanityinc"><img alt="Support me"
src="https://img.shields.io/badge/Support%20Me-%F0%9F%92%97-ff69b4.svg"></a>
# exec-path-from-shell