REPORTER = dot TARGETS ?= unexpected.js unexpected.es5.js lint: @./node_modules/.bin/jshint lib/*.js test/*.js .PHONY: lint unexpected.js: lint lib/* (echo '/*!' && $@ unexpected.es5.js: lint lib/* (echo '/*!' && $@ test-phantomjs: lint unexpected.js @$(eval QUERY=$(shell node -e "console.log(decodeURIComponent(process.argv.pop()))" "${grep}")) \ ./node_modules/.bin/mocha-phantomjs test/tests.html?grep=${QUERY} test: lint mocha .PHONY: test test-production: lint ${TARGETS} @./node_modules/.bin/mocha-phantomjs test/tests.production.html @./node_modules/.bin/mocha-phantomjs test/tests.production.es5.html .PHONY: test-production coverage: lib/* NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot .PHONY: test-browser test-browser: unexpected.js @./node_modules/.bin/serve . travis: lint test test-production coverage