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
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
paths-ignore:
- '**/*.md'
workflow_dispatch:

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

jobs:
build:
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: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}

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

- uses: actions/checkout@v4

- name: Run test
run: make all
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.elc
/.cask/
/.eask/
/dist/
18 changes: 18 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(package "php-runtime"
"0.3.1"
"Language binding bridge to PHP")

(website-url "https://github.com/emacs-php/php-runtime.el")
(keywords "processes" "php" "lisp")

(package-file "php-runtime.el")

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

(source 'gnu)
(source 'melpa)

(depends-on "emacs" "25.1")
(depends-on "compat")

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
EMACS ?= emacs
ELS = php-runtime.el php-runtime-test.el
ELCS = $(ELS:.el=.elc)
EASK ?= eask

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

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

# TODO: Add `test` back once it's passed on all OSs!
all: clean install compile

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

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

.PHONY: clean test