-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from jcs-PR/test/eask
test: Build with Eask
- Loading branch information
Showing
4 changed files
with
65 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.elc | ||
/*-autoloads.el | ||
/.cask | ||
/.eask | ||
/dist | ||
/composer.lock | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(package "phpstan" | ||
"0.7.2" | ||
"Interface to PHPStan (PHP static analyzer)") | ||
|
||
(website-url "https://github.com/emacs-php/phpstan.el") | ||
(keywords "tools" "php") | ||
|
||
(package-file "phpstan.el") | ||
(files "*.el") | ||
|
||
(script "test" "echo \"Error: no test specified\" && exit 1") | ||
|
||
(source 'gnu) | ||
(source 'melpa) | ||
|
||
(depends-on "emacs" "24.3") | ||
(depends-on "compat") | ||
(depends-on "php-mode") | ||
(depends-on "php-runtime") | ||
(depends-on "flycheck") | ||
|
||
(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
EMACS ?= emacs | ||
CASK ?= cask | ||
ELS = phpstan.el flycheck-phpstan.el flymake-phpstan.el | ||
AUTOLOADS = phpstan-autoloads.el | ||
ELCS = $(ELS:.el=.elc) | ||
EASK ?= eask | ||
|
||
.el.elc: .cask | ||
$(EMACS) -Q -batch -L . --eval \ | ||
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \ | ||
(require 'package) \ | ||
(normal-top-level-add-subdirs-to-load-path))" \ | ||
-f package-initialize -f batch-byte-compile $< | ||
install: | ||
$(EASK) package | ||
$(EASK) install | ||
$(EASK) install-deps | ||
|
||
.cask: Cask | ||
$(CASK) | ||
compile: | ||
$(EASK) compile | ||
|
||
all: clean autoloads $(ELCS) | ||
all: clean autoloads install compile | ||
|
||
autoloads: $(AUTOLOADS) | ||
|
||
$(AUTOLOADS): $(ELCS) | ||
$(EMACS) -Q -batch -L . --eval \ | ||
"(progn \ | ||
(require 'package) \ | ||
(normal-top-level-add-subdirs-to-load-path) \ | ||
(package-generate-autoloads \"phpstan\" default-directory))" | ||
autoloads: | ||
$(EASK) generate autoloads | ||
|
||
clean: | ||
-rm -f $(ELCS) $(AUTOLOADS) | ||
|
||
clobber: clean | ||
-rm -f .cask | ||
$(EASK) clean all | ||
|
||
.PHONY: all autoloads clean clobber | ||
.PHONY: all autoloads clean |