Skip to content

Commit

Permalink
[chore] Update the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Nov 7, 2018
1 parent b57e063 commit d95e38f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@

REPORTER = dot
help: ## print this message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

test:
test: ## run tests either in the browser or in Node.js, based on the `BROWSERS` variable
@if [ "x$(BROWSERS)" = "x" ]; then make test-node; else make test-zuul; fi

test-node:
@./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--bail \
test/index.js
test-node: ## run tests in Node.js
@./node_modules/.bin/mocha --reporter dot --bail test/index.js

test-zuul:
@./node_modules/zuul/bin/zuul \
test/index.js
test-zuul: ## run tests in the browser
@./node_modules/zuul/bin/zuul test/index.js

.PHONY: test
.PHONY: help test test-node test-zuul

0 comments on commit d95e38f

Please sign in to comment.