Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Touch phpunit if there is no phpunit command
  • Loading branch information
zonuexe committed Dec 5, 2017
commit f99e1d1b6b1fef71db5c125fc4b2f54bbe9cd3f2
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ elpa:
build : elpa $(OBJECTS)

.PHONY: test
test: build
test: build vendor/bin/phpunit
@echo -e "$(OK_COLOR)[$(APP)] Unit tests$(NO_COLOR)"
@$(CASK) exec ert-runner

Expand Down Expand Up @@ -94,6 +94,9 @@ package: clean pkg-el
gzip $(ARCHIVE)
rm -fr dist

vendor/bin/phpunit:
php -r 'is_dir("vendor/bin") or mkdir("vendor/bin", 0777, true); touch("vendor/bin/phpunit");'

%.elc : %.el
@$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
$(EMACSFLAGS) \
Expand Down