You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
788 B

  1. REPORTER = dot
  2. build: socket.io.js
  3. socket.io.js: lib/*.js package.json
  4. @./support/browserify.sh > socket.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. test/index.js
  11. test-zuul:
  12. @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
  13. ./node_modules/zuul/bin/zuul \
  14. --browser-name $(BROWSER_NAME) \
  15. --browser-version $(BROWSER_VERSION) \
  16. test/index.js; \
  17. else \
  18. ./node_modules/zuul/bin/zuul \
  19. --browser-name $(BROWSER_NAME) \
  20. --browser-version $(BROWSER_VERSION) \
  21. --browser-platform "$(BROWSER_PLATFORM)" \
  22. test/index.js; \
  23. fi
  24. test-cov:
  25. @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
  26. --reporter $(REPORTER) \
  27. test/
  28. .PHONY: test