-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
27 lines (20 loc) · 731 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export PATH := $(shell pwd)/node_modules/.bin/:$(PATH)
REPORTER = spec # list
all: test
test: test-modules test-node
test-node:
@node app --socket.log-level=1 --engine.pd.options.flags.nogui & echo $$! > app.pid
@mocha --reporter $(REPORTER) ./test/node/* || true
@echo 'done'
@kill `cat app.pid`
@rm app.pid
test-modules:
@cd node_modules/tool/ && make
@cd node_modules/port/ && make
@cd node_modules/planet/ && make
test-browser:
@cp ./node_modules/mocha/mocha.js ./test/public/mocha.js
@cp ./node_modules/mocha/mocha.css ./test/public/mocha.css
@./node_modules/wrapup/bin/wrup.js browser --require ./test/public.js --output ./test/public/tests.js
@open -a Google\ Chrome ./test/public/index.html
.PHONY: test