[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/parseclj 343052c01a 014/185: Add linting to the build
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/parseclj 343052c01a 014/185: Add linting to the build |
Date: |
Tue, 28 Dec 2021 14:05:09 -0500 (EST) |
branch: elpa/parseclj
commit 343052c01a6038a62239ee65415853c10270ad4d
Author: Arne Brasseur <arne@arnebrasseur.net>
Commit: Arne Brasseur <arne@arnebrasseur.net>
Add linting to the build
---
.travis.yml | 5 +++++
clj-parse-test-runner.el | 17 ++++++++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 86e0be717e..a233d11372 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,11 @@ language: emacs-lisp
env:
- EMACS=emacs-24.3 PPA=ppa:ubuntu-elisp PACKAGE=emacs-snapshot
- EMACS=emacs-25.1 PPA=ppa:kelleyk/emacs PACKAGE=emacs25
+ - EMACS=emacs-25.1 PPA=ppa:kelleyk/emacs PACKAGE=emacs25 CLJ_PARSE_LINT=true
+
+matrix:
+ allow_failures:
+ - env: EMACS=emacs-25.1 PPA=ppa:kelleyk/emacs PACKAGE=emacs25
CLJ_PARSE_LINT=true
before_install:
- sudo add-apt-repository -y $PPA
diff --git a/clj-parse-test-runner.el b/clj-parse-test-runner.el
index c6e5449ad8..f14bfb9723 100644
--- a/clj-parse-test-runner.el
+++ b/clj-parse-test-runner.el
@@ -13,6 +13,8 @@
(when (not (fboundp 'let-alist))
(package-install 'let-alist))
+(package-install 'package-lint)
+
(require 'ert)
;; Tried
@@ -22,4 +24,17 @@
(let ((pwd (replace-regexp-in-string "\n\\'" "" (shell-command-to-string
"pwd"))))
(load (concat pwd "/clj-parse.el")))
-(ert-run-tests-batch-and-exit)
+(if (getenv "CLJ_PARSE_LINT")
+ (let ((success t))
+ (dolist (file '("clj-parse.el"))
+ (with-temp-buffer
+ (insert-file-contents file t)
+ (emacs-lisp-mode)
+ (let ((checking-result (package-lint-buffer)))
+ (when checking-result
+ (setq success nil)
+ (message "In `%s':" file)
+ (pcase-dolist (`(,line ,col ,type ,message) checking-result)
+ (message " at %d:%d: %s: %s" line col type message))))))
+ (kill-emacs (if success 0 1)))
+ (ert-run-tests-batch-and-exit))
- [nongnu] branch elpa/parseclj created (now a8c4cf30fb), ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 2d10ef3742 002/185: Travis CI / test setup, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 01608b7537 007/185: Seriously thinking of sticking to Emacs 25. This is getting ridiculous., ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj ee71cb8afe 005/185: Try again for the Travis build, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 4df6ae1bc7 012/185: Travis: only install the necessary ppa/package for each matrix line, 2nd attempt, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj e179a11ec4 016/185: More of trying to appease the mighty gods of Travis, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj d5167bf4ad 021/185: Test/lint stuff, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 22f2eb106f 028/185: Support \uxxxx and \oxxx escape codes in strings, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 343052c01a 014/185: Add linting to the build,
ELPA Syncer <=
- [nongnu] elpa/parseclj 07739abe2c 030/185: support keywords, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj ced0b91c08 029/185: "Support" namespaces symbols, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 1eef0b62c8 034/185: Support #_discard forms, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 0974b56833 035/185: Stick to non CL functions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj f8822bb43c 040/185: Add support for tags in lexer, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 43f59dcb91 043/185: Avoid dropping whitespaces, handling them while reducing, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 7733985037 047/185: DESIGN.md-related adjustments, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj c906de33a1 048/185: Rewrite all tests, and add new tests for the AST "printer", ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 697618dbb1 049/185: Merge pull request #1 from volrath/master, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj e7686c49ed 052/185: Greater parity with edn.el, ELPA Syncer, 2021/12/28