Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
emacs-version:
- 26.3
- 27.2
- 28.2
- 29.1
experimental: [false]
include:
- os: ubuntu-latest
emacs-version: snapshot
experimental: true
- os: macos-latest
emacs-version: snapshot
experimental: true
- os: windows-latest
emacs-version: snapshot
experimental: true

steps:
- uses: actions/checkout@v4

- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}

- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'

- name: Run tests
run: make ci
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*~
/*-autoloads.el
/.cask/
/.eask/
/dist
16 changes: 16 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(package "muldoc"
"0.4.0"
"Multi ElDoc integration")

(website-url "https://github.com/emacs-php/muldoc")
(keywords "tools" "extension")

(package-file "muldoc.el")

(script "test" "echo \"Error: no test specified\" && exit 1")

(source 'gnu)

(depends-on "emacs" "25.1")

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
27 changes: 13 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
EMACS ?= emacs
ELS = muldoc.el
AUTOLOADS = muldoc-autoloads.el
ELCS = $(ELS:.el=.elc)
EASK ?= eask

%.elc: %.el
$(EMACS) -Q -batch -L . -f batch-byte-compile $<
install:
$(EASK) package
$(EASK) install

all: autoloads $(ELCS)
compile:
$(EASK) compile

autoloads: $(AUTOLOADS)
ci: clean autoloads install compile

$(AUTOLOADS): $(ELS)
$(EMACS) -Q -batch -L . --eval \
"(progn \
(require 'package) \
(package-generate-autoloads \"muldoc\" default-directory))"
all: autoloads compile

autoloads:
$(EASK) generate autoloads

clean:
rm -f $(ELCS) $(AUTOLOADS)
$(EASK) clean all

test: clean all
$(EMACS) -Q -batch -L . -l tests/muldoc-test.el -f ert-run-tests-batch-and-exit
$(EASK) test ert tests/muldoc-test.el