[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu ffbe938d60 268/288: perform elisp-lint in circleci
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu ffbe938d60 268/288: perform elisp-lint in circleci |
Date: |
Thu, 6 Jan 2022 03:58:59 -0500 (EST) |
branch: elpa/anzu
commit ffbe938d60f77eddea5168e4b3c2680e9cdb344a
Author: Neil Okamoto <neil.okamoto@gmail.com>
Commit: Neil Okamoto <neil.okamoto@gmail.com>
perform elisp-lint in circleci
---
.circleci/config.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
.gitignore | 2 ++
Cask | 1 +
Makefile | 51 ++++++++++++++++++++++++++++++++++++++++++
anzu.el | 3 ++-
5 files changed, 119 insertions(+), 1 deletion(-)
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000..a8f07d76b1
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,63 @@
+version: 2.1
+
+# Default actions to perform on each Emacs version
+commands:
+ default-steps:
+ steps:
+ - checkout
+ - run: make version
+ - run: make lint
+ - run: make test
+
+# Enumerated list of Emacs versions
+jobs:
+ test-emacs-25:
+ docker:
+ - image: silex/emacs:25-dev
+ entrypoint: bash
+ steps:
+ - default-steps
+
+ test-emacs-26:
+ docker:
+ - image: silex/emacs:26-dev
+ entrypoint: bash
+ steps:
+ - default-steps
+
+ test-emacs-27:
+ docker:
+ - image: silex/emacs:27-dev
+ entrypoint: bash
+ steps:
+ - default-steps
+
+ test-emacs-master:
+ docker:
+ - image: silex/emacs:master-dev
+ entrypoint: bash
+ steps:
+ - default-steps
+
+ # coverage:
+ # docker:
+ # - image: silex/emacs:26-dev
+ # entrypoint: bash
+ # steps:
+ # - checkout
+ # - run: make submit-coverage
+
+# Executing in parallel
+workflows:
+ ci-test-matrix:
+ jobs:
+ - test-emacs-25
+ - test-emacs-26
+ - test-emacs-27
+ - test-emacs-master
+ # - coverage:
+ # requires:
+ # - test-emacs-25
+ # - test-emacs-26
+ # - test-emacs-27
+ # - test-emacs-master
diff --git a/.gitignore b/.gitignore
index 64b10531aa..0c6eefb308 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
/.cask/
+*.elc
+*-autoloads.*
diff --git a/Cask b/Cask
index 3352d705a4..5672dd13b6 100644
--- a/Cask
+++ b/Cask
@@ -4,5 +4,6 @@
(package-file "anzu.el")
(development
+ (depends-on "elisp-lint")
(depends-on "powerline")
(depends-on "migemo"))
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..28276e80b3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,51 @@
+.PHONY : clean distclean lint test version
+
+EMACS ?= emacs
+CASK ?= cask
+
+LOADPATH = -L .
+
+ELPA_DIR = $(shell EMACS=$(EMACS) $(CASK) package-directory)
+AUTOLOADS = $(wildcard *-autoloads.el*)
+ELS = $(filter-out $(AUTOLOADS),$(wildcard *.el))
+OBJECTS = $(ELS:.el=.elc)
+BACKUPS = $(ELS:.el=.el~)
+
+version: elpa
+ $(CASK) exec $(EMACS) --version
+
+lint: elpa
+ $(CASK) exec $(EMACS) -Q --batch \
+ --exec "(require 'package)" \
+ --exec "(add-to-list 'package-archives '(\"melpa\" .
\"https://melpa.org/packages\") t)" \
+ --exec "(package-initialize)" \
+ --exec "(require 'elisp-lint)" \
+ -f elisp-lint-files-batch \
+ --no-checkdoc \
+ --no-fill-column \
+ $(ELS)
+
+# test: elpa
+# $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \
+# -l test/test.el \
+# -f ert-run-tests-batch-and-exit
+
+elpa: $(ELPA_DIR)
+$(ELPA_DIR): Cask
+ mkdir -p $(ELPA_DIR)/gnupg && \
+ chmod 700 $(ELPA_DIR)/gnupg && \
+ echo "disable-ipv6" > $(ELPA_DIR)/gnupg/dirmngr.conf && \
+ for i in {1..3}; do \
+ gpg --keyserver keyserver.ubuntu.com \
+ --homedir $(ELPA_DIR)/gnupg \
+ --recv-keys 066DAFCB81E42C40 \
+ && break || sleep 15; \
+ done
+ $(CASK) install
+ touch $@
+
+clean:
+ rm -rf $(OBJECTS) $(BACKUPS) $(AUTOLOADS)
+
+distclean:
+ rm -rf .cask
diff --git a/anzu.el b/anzu.el
index 3a005b7d24..e88d09d52e 100644
--- a/anzu.el
+++ b/anzu.el
@@ -380,7 +380,7 @@
;; Return highlighted count
(defun anzu--count-and-highlight-matched (buf str replace-beg replace-end
- use-regexp overlay-limit
case-sensitive)
+ use-regexp overlay-limit
case-sensitive)
(anzu--cleanup-markers)
(when (not use-regexp)
(setq str (regexp-quote str)))
@@ -870,5 +870,6 @@
(provide 'anzu)
;; Local Variables:
;; indent-tabs-mode: nil
+;; fill-column: 85
;; End:
;;; anzu.el ends here
- [nongnu] elpa/anzu 72e86131a2 243/288: Merge pull request #75 from syohex/user-case-fold-search, (continued)
- [nongnu] elpa/anzu 72e86131a2 243/288: Merge pull request #75 from syohex/user-case-fold-search, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7b8146c1eb 254/288: Improve alt attribute of images, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6fded24b36 224/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f2914907e9 255/288: Update minimum Emacs version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 13401ab3c6 249/288: Don't search over bound, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d257c79a7a 258/288: Merge pull request #85 from syohex/add-docstrings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 0dbefcdd1f 252/288: Enforce use of spaces for indentation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 177a328830 266/288: Fix issue #93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu a5a22fd537 280/288: release 0.63, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9d334a4e37 265/288: replaced string should be compiled at regexp replace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ffbe938d60 268/288: perform elisp-lint in circleci,
ELPA Syncer <=
- [nongnu] elpa/anzu 7dc4abe0a0 274/288: Merge branch 'master' into fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e4c2728734 270/288: fix check-declare error by eliminating declare-function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ee6a6448df 277/288: Merge pull request #107 from emacsorphanage/revert-104-fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 71a1a88dcd 275/288: Merge pull request #104 from agreselin/fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2e69955da9 271/288: clean up "make lint" rule in Makefile, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 592f8ee6d0 263/288: Merge pull request #95 from syohex/emacs-27-bug, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7b8688c84d 282/288: default anzu-search-threshold and anzu-replace-threshold is 1000, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b3d15fba55 283/288: Support non contiguous regions like rectangle region (#115), ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5abb37455e 288/288: fix the ci status badge on README.md, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu bdb3da5028 285/288: bump version 0.64, ELPA Syncer, 2022/01/06