mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
updated makefile to use gulp commands
This commit is contained in:
47
Makefile
47
Makefile
@@ -4,34 +4,39 @@ REPORTER = dot
|
||||
build: socket.io.js
|
||||
|
||||
socket.io.js: lib/*.js package.json
|
||||
@./support/browserify.sh > socket.io.js
|
||||
gulp
|
||||
# @./support/browserify.sh > socket.io.js
|
||||
|
||||
test:
|
||||
@if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi
|
||||
gulp test
|
||||
# @if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi
|
||||
|
||||
test-node:
|
||||
@./node_modules/.bin/mocha \
|
||||
--reporter $(REPORTER) \
|
||||
--require test/support/server.js \
|
||||
test/index.js
|
||||
gulp test-node
|
||||
# @./node_modules/.bin/mocha \
|
||||
# --reporter $(REPORTER) \
|
||||
# --require test/support/server.js \
|
||||
# test/index.js
|
||||
|
||||
test-zuul:
|
||||
@if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
|
||||
./node_modules/zuul/bin/zuul \
|
||||
--browser-name $(BROWSER_NAME) \
|
||||
--browser-version $(BROWSER_VERSION) \
|
||||
test/index.js; \
|
||||
else \
|
||||
./node_modules/zuul/bin/zuul \
|
||||
--browser-name $(BROWSER_NAME) \
|
||||
--browser-version $(BROWSER_VERSION) \
|
||||
--browser-platform "$(BROWSER_PLATFORM)" \
|
||||
test/index.js; \
|
||||
fi
|
||||
gulp test-zuul
|
||||
# @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
|
||||
# ./node_modules/zuul/bin/zuul \
|
||||
# --browser-name $(BROWSER_NAME) \
|
||||
# --browser-version $(BROWSER_VERSION) \
|
||||
# test/index.js; \
|
||||
# else \
|
||||
# ./node_modules/zuul/bin/zuul \
|
||||
# --browser-name $(BROWSER_NAME) \
|
||||
# --browser-version $(BROWSER_VERSION) \
|
||||
# --browser-platform "$(BROWSER_PLATFORM)" \
|
||||
# test/index.js; \
|
||||
# fi
|
||||
|
||||
test-cov:
|
||||
@./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
|
||||
--reporter $(REPORTER) \
|
||||
test/
|
||||
gulp test-cov
|
||||
# @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
|
||||
# --reporter $(REPORTER) \
|
||||
# test/
|
||||
|
||||
.PHONY: test
|
||||
|
||||
Reference in New Issue
Block a user