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.

37 lines
845 B

  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. 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. --require ./test/common \
  27. --reporter $(REPORTER) \
  28. $(TESTS)
  29. .PHONY: test build