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
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ jobs:
- emacs_version: snapshot
allow_failure: true
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.6'
architecture: 'x64'
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- uses: actions/checkout@v1
- uses: conao3/setup-cask@master
with:
version: 'snapshot'
- uses: actions/checkout@v2
- name: Run tests
if: matrix.allow_failure != true
run: 'make test'
Expand Down
12 changes: 7 additions & 5 deletions Cask
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
(package "php-mode" "1.24.0" "Major mode for editing PHP code")
(source melpa)

(package-file "php-mode.el")
(package-file "lisp/php-mode.el")

(files
"php.el"
"php-face.el"
"php-project.el"
"php-mode-debug.el")
"lisp/php.el"
"lisp/php-face.el"
"lisp/php-project.el"
"lisp/php-local-manual.el"
"lisp/php-mode-debug.el")

(development
(depends-on "pkg-info")
(depends-on "projectile")
(depends-on "smart-jump")
(depends-on "shut-up"))
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
EMACS ?= emacs
CASK ?= cask
ELS = lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-local-manual.el lisp/php-mode.el lisp/php-mode-debug.el
AUTOLOADS = php-mode-autoloads.el
ELCS = $(ELS:.el=.elc)
Expand All @@ -24,12 +25,15 @@ AUTHORS.md: etc/git/AUTHORS.md.in .mailmap

autoloads: $(AUTOLOADS)

$(AUTOLOADS): lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-mode-debug.el lisp/php-mode.el
$(AUTOLOADS): lisp/php.el lisp/php-align.el lisp/php-face.el lisp/php-project.el lisp/php-local-manual.el lisp/php-mode-debug.el lisp/php-mode.el
$(EMACS) -Q -batch -L lisp/ --eval \
"(progn \
(require 'package) \
(package-generate-autoloads \"php-mode\" (expand-file-name \"lisp\")))"

.cask: Cask
$(CASK) install

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

Expand All @@ -50,9 +54,13 @@ dev:
#
# for an example of using a script like this with the 'git bisect run'
# command.
test: clean all
test: .cask clean all
touch tests/project/1/.git
$(EMACS) -Q -batch -l lisp/php-mode-autoloads.el \
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
$(EMACS) -Q -batch -L lisp/ --eval \
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
(require 'package) \
(normal-top-level-add-subdirs-to-load-path))" \
-f package-initialize \
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit

.PHONY: all authors autoloads clean test