Makefile 882 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. REPORTER = dot
  2. build: engine.io.js
  3. engine.io.js: lib/*.js lib/transports/*.js package.json
  4. @./support/browserify.sh > engine.io.js
  5. test:
  6. @if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi
  7. test-node:
  8. @./node_modules/.bin/mocha \
  9. --reporter $(REPORTER) \
  10. --require test/support/server.js \
  11. test/index.js
  12. test-zuul:
  13. @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
  14. ./node_modules/zuul/bin/zuul \
  15. --browser-name $(BROWSER_NAME) \
  16. --browser-version $(BROWSER_VERSION) \
  17. test/index.js; \
  18. else \
  19. ./node_modules/zuul/bin/zuul \
  20. --browser-name $(BROWSER_NAME) \
  21. --browser-version $(BROWSER_VERSION) \
  22. --browser-platform "$(BROWSER_PLATFORM)" \
  23. test/index.js; \
  24. fi
  25. test-cov:
  26. @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
  27. --require ./test/common \
  28. --reporter $(REPORTER) \
  29. $(TESTS)
  30. .PHONY: test build