chore: add Eask pipeline
All checks were successful
CI / build (29.4) (push) Successful in 1m17s
CI / build (snapshot) (push) Successful in 1m3s

This commit is contained in:
Lucien Cartier-Tilet 2024-09-12 23:12:45 +02:00
parent 570d97004d
commit 75a0d5887e
Signed by: phundrak
GPG Key ID: 347803E8073EACE0
7 changed files with 100 additions and 9 deletions

4
.dir-locals.el Normal file
View File

@ -0,0 +1,4 @@
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")
((emacs-lisp-mode . ((sentence-end-double-space . t))))

24
.gitea/workflows/test.yml Normal file
View File

@ -0,0 +1,24 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- 29.4
- snapshot
steps:
- uses: actions/checkout@v4
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- name: "Execute Eask CI"
run: make ci

19
Eask Normal file
View File

@ -0,0 +1,19 @@
;;; -*- mode: cask -*-
(package "conlanging"
"0.1.0"
"Helper functions for conlanging")
(website-url "https://labs.phundrak.com/phundrak/conlanging.el")
(keywords "convenience")
(package-file "conlanging.el")
(script "test" "echo \"Error: no test specified\" && exit 1")
(source "gnu")
(depends-on "emacs" "26.1")
(depends-on "ivy" "0.13")
(depends-on "org" "9")
(depends-on "counsel" "0.13")
(depends-on "dash" "2.19")

38
Makefile Normal file
View File

@ -0,0 +1,38 @@
EMACS ?= emacs
EASK ?= eask
.PHONY: clean package install compile test checkdoc lint
ci: clean package install compile checkdoc lint
package:
@echo "Packaging..."
$(EASK) package
install:
@echo "Installing..."
$(EASK) install
compile:
@echo "Compiling..."
$(EASK) compile
test:
@echo "Testing..."
$(EASK) install-deps --dev
$(EASK) test ert ./test/*.el
checkdoc:
@echo "Checking documentation..."
$(EASK) lint checkdoc
lint:
@echo "Linting..."
$(EASK) lint declare
$(EASK) lint indent
$(EASK) lint keywords
$(EASK) lint package
$(EASK) lint regexps
clean:
$(EASK) clean all

View File

@ -3,7 +3,6 @@
;; Author: Lucien Cartier-Tilet <lucien@phundrak.com> ;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com> ;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
;; Version: 0.1.0 ;; Version: 0.1.0
;; Package-Requires: ((emacs "29.1") (dash "2.19"))
;; Homepage: https://labs.phundrak.com/phundrak/conlanging.el ;; Homepage: https://labs.phundrak.com/phundrak/conlanging.el
;; Keywords: convenience ;; Keywords: convenience
@ -23,6 +22,10 @@
;; You should have received a copy of the GNU General Public License ;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>. ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; This file includes functions to help write the documentation for
;; the Eittlandic language faster.
;;; Code: ;;; Code:
(require 'dash) (require 'dash)
@ -33,7 +36,7 @@
"Declensions of strong common nouns in Eittlandic. "Declensions of strong common nouns in Eittlandic.
The first element of a pair is the vowel to use if there is no The first element of a pair is the vowel to use if there is no
underlying vowel. The second element is the declension suffix. underlying vowel. The second element is the declension suffix.
The order of the suffixes go like this: The order of the suffixes go like this:
- singular nominative - singular nominative
@ -77,7 +80,7 @@ See `conlanging-eittlandic--strong-common-noun-declension' for more info.")
"Return which underlying vowel should be used. "Return which underlying vowel should be used.
If DEFAULT-VOWEL is nil, it means there is no need to insert a If DEFAULT-VOWEL is nil, it means there is no need to insert a
vowel. However, if it is not, it should be used, unless vowel. However, if it is not, it should be used, unless
UNDERLYING-VOWEL is non-nil." UNDERLYING-VOWEL is non-nil."
(if default-vowel (if default-vowel
(if underlying-vowel underlying-vowel default-vowel) (if underlying-vowel underlying-vowel default-vowel)
@ -147,8 +150,8 @@ list, going in the following order:
The function will know how to create the declensions on ROOT The function will know how to create the declensions on ROOT
depending on its GENDER and its STRENGTH (whether it is a strong depending on its GENDER and its STRENGTH (whether it is a strong
or weak noun). The UNDERLYING-VOWEL may or may not be nil and can or weak noun). The UNDERLYING-VOWEL may or may not be nil and
influence the word's declensions." can influence the word's declensions."
(interactive (interactive
(list (list
(read-string "Word root: ") (read-string "Word root: ")

View File

@ -3,7 +3,6 @@
;; Author: Lucien Cartier-Tilet <lucien@phundrak.com> ;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com> ;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
;; Version: 0.1.0 ;; Version: 0.1.0
;; Package-Requires: ((emacs "26.1"))
;; Homepage: https://labs.phundrak.com/phundrak/conlanging.el ;; Homepage: https://labs.phundrak.com/phundrak/conlanging.el
;; Keywords: convenience ;; Keywords: convenience
@ -23,6 +22,9 @@
;; You should have received a copy of the GNU General Public License ;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>. ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; This file includes functions to create conlanging-related graphs,
;; namely graphs of phonemes based on their phonological features.
;;; Code: ;;; Code:
(require 'ox) (require 'ox)
@ -87,7 +89,7 @@ tree itself."
LABEL is the label of the root node. LABEL is the label of the root node.
PREVIOUS is for internal use. It refers to the parent node of :PREVIOUS is for internal use. It refers to the parent node of
NODE if NODE is a subtree of the root tree." NODE if NODE is a subtree of the root tree."
(cond (cond
((stringp node) ;; it's a leaf! ((stringp node) ;; it's a leaf!

View File

@ -3,8 +3,9 @@
;; Author: Lucien Cartier-Tilet ;; Author: Lucien Cartier-Tilet
;; Maintainer: Lucien Cartier-Tilet ;; Maintainer: Lucien Cartier-Tilet
;; Version: 0.1.0 ;; Version: 0.1.0
;; Package-Requires: ((emacs "24") (org "9") (ivy "0.13") (counsel "0.13")) ;; Package-Requires: ((emacs "29") (org "9") (ivy "0.13") (counsel "0.13") (dash "2.19"))
;; Homepage: https://labs.phundrak.com/phundrak/conlanging.el ;; Homepage: https://labs.phundrak.com/phundrak/conlanging.el
;; Keywords: convenience
;; This file is not part of GNU Emacs ;; This file is not part of GNU Emacs
@ -24,7 +25,7 @@
;;; Commentary: ;;; Commentary:
;; This package is not made in order to be used by a lot of people. ;; This package is not made in order to be used by a lot of people.
;; Actually, it is made only for me. As such, there is no chance to ;; Actually, it is made only for me. As such, there is no chance to
;; find it on any ELPA or MELPA. ;; find it on any ELPA or MELPA.
;; ;;
;; Functions and variables in this package are just helpers for myself ;; Functions and variables in this package are just helpers for myself