[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/adoc-mode 46e8ea4126 129/199: Add Eldev and a GHA workflow
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/adoc-mode 46e8ea4126 129/199: Add Eldev and a GHA workflow based on it |
Date: |
Sun, 3 Sep 2023 06:59:40 -0400 (EDT) |
branch: elpa/adoc-mode
commit 46e8ea4126ef047c0cc78b394742963c41944142
Author: Bozhidar Batsov <bozhidar@batsov.dev>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Add Eldev and a GHA workflow based on it
I've also added a bunch of hacking guidelines for potential contributors.
---
.github/workflows/test.yml | 34 ++++++++++++++++++++++++
.gitignore | 1 +
Eldev | 1 +
README.md | 66 ++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 102 insertions(+)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..2767f9852c
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,34 @@
+name: CI
+
+on:
+ push:
+ paths-ignore: ['**.md', '**.adoc']
+ pull_request:
+ paths-ignore: ['**.md', '**.adoc']
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
+
+ strategy:
+ matrix:
+ # Earliest supported + latest in each stable branch + snapshot.
+ emacs_version: ['25.1', '25.3', '26.3', '27.1', '28.1', 'snapshot']
+
+ steps:
+ - name: Set up Emacs
+ uses: purcell/setup-emacs@master
+ with:
+ version: ${{matrix.emacs_version}}
+
+ - name: Install Eldev
+ run: curl -fsSL
https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
+
+ - name: Check out the source code
+ uses: actions/checkout@v2
+
+ - name: Test the project
+ run: |
+ eldev -p -dtT -C test --expect 100
+ eldev -dtT -C compile --warnings-as-errors
diff --git a/.gitignore b/.gitignore
index d27fb030ab..3e4ada4c83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
*.elc
#*#
TAGS
+.eldev
diff --git a/Eldev b/Eldev
new file mode 100644
index 0000000000..c51ddaa95a
--- /dev/null
+++ b/Eldev
@@ -0,0 +1 @@
+(eldev-use-package-archive 'melpa)
diff --git a/README.md b/README.md
index b5185065a4..82e650c062 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
+[![Build
Status](https://github.com/emacsorphanage/adoc-mode/workflows/CI/badge.svg)](https://github.com/emacsorphanage/adoc-mode/actions?query=workflow%3ACI)
[![MELPA][melpa-badge]][melpa-package]
[![MELPA Stable][melpa-stable-badge]][melpa-stable-package]
@@ -85,6 +86,71 @@ characters are visible, however meta characters are
displayed in a faint way.
![screenshot](http://dl.dropbox.com/u/75789984/adoc-mode.png)
+## Hacking
+
+adoc-mode uses [Eldev](https://github.com/doublep/eldev) for development, so
+you should install the tool first.
+
+The easiest and "purest" way to run adoc-mode is to execute:
+
+ $ eldev emacs
+
+This will start a separate Emacs process with adoc-mode and its
+dependencies available, but _without_ your normal packages installed.
+However, you can use `Eldev-local` to add some packages with
+`(eldev-add-extra-dependencies 'emacs ...)` forms. See Eldev
+documentation for details.
+
+Alternatively, if you want to load adoc-mode from source code in the Emacs
+you use for editing:
+
+- Generate autoloads file (that's done automatically when installing
+via `package.el` but you'll have to do it manually in this case):
+
+``` shellsession
+$ eldev build :autoloads
+```
+
+- Add to your `.emacs`:
+
+``` emacs-lisp
+;; load adoc-mode from its source code
+(add-to-list 'load-path "~/projects/adoc-mode")
+(load "adoc-mode-autoloads" t t)
+```
+
+### Changing the code
+
+It's perfectly fine to load adoc-mode from `package.el` and then to start
making
+experiments by changing existing code and adding new code.
+
+A very good workflow is to just open the source code you've cloned and start
+evaluating the code you've altered/added with commands like `C-M-x`,
+`eval-buffer` and so on.
+
+Once you've evaluated the new code, you can invoke some interactive command
that
+uses it internally or open a Emacs Lisp REPL and experiment with it there. You
+can open an Emacs Lisp REPL with `M-x ielm`.
+
+You can also quickly evaluate some Emacs Lisp code in the minibuffer with
`M-:`.
+
+### Running the tests
+
+Run all tests with:
+
+ $ eldev test
+
+NOTE: Tests may not run correctly inside Emacs' `shell-mode` buffers. Running
+them in a terminal is recommended.
+
+You can also check for compliance with a variety of coding standards in batch
mode (including docstrings):
+
+ $ eldev lint
+
+To check for byte-compilation warnings you can just compile the project with
Eldev:
+
+ $ eldev compile
+
## License
Copyright © 2010-2013 Florian Kaufmann
- [nongnu] elpa/adoc-mode e6b8e69843 090/199: bugfix: empty AsciiDoc attributes (e.g. [, ]) caused adoc-mode to enter infinite loop, (continued)
- [nongnu] elpa/adoc-mode e6b8e69843 090/199: bugfix: empty AsciiDoc attributes (e.g. [, ]) caused adoc-mode to enter infinite loop, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 976794ddc2 171/199: Update the changelog, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode cd2da9591a 172/199: Fix function name, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 07ac0c12d3 176/199: Tweak the README, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 65794ce2da 188/199: Addresses #33. Reduce formatting lag by `adoc-kwf-search`, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 9e1ea49b09 196/199: Listing blocks and literal blocks can have source style., ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 0348f96d72 101/199: local refactoring in field of attribute list, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 576d724330 114/199: 'caption' of http/... inline macros can now contain commas, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 2682662c96 118/199: Use mode-* to set var require-final-newline, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode db6c51c8e7 128/199: Restructure the README, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 46e8ea4126 129/199: Add Eldev and a GHA workflow based on it,
ELPA Syncer <=
- [nongnu] elpa/adoc-mode 7fdddd54f7 132/199: Require Emacs 26, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode bded623e3d 139/199: [Fix #8] Add a changelog, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 00c59c8d95 145/199: [Fix #7] Convert readme to AsciiDoc (#10), ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 893daa395c 152/199: Move the syntax-table out of the mode definition, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 2c4847d843 160/199: Tweak a couple of docstrings, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode c3d738dd7d 169/199: Fix a typo, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 109bdc5d13 180/199: Fix a typo and some whitespace issues, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 9e7af55e7e 183/199: Fix a typo, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode b0702bdeb8 187/199: [Fix #33] Address noticeable lag when typing in larger code blocks (#35), ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 526e058665 029/199: added another list item test, ELPA Syncer, 2023/09/03