habitica/Makefile
2012-09-24 11:30:37 -04:00

20 lines
498 B
Makefile

compile:
./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src
test-casper:
casperjs test ./test
MOCHA_TESTS := $(shell find test/ -name '*.mocha.*')
MOCHA = mocha --compilers coffee:coffee-script
OUT_FILE = "test-output.tmp"
g = "."
#@NODE_ENV=test $(MOCHA) --grep "$(g)" $(MOCHA_TESTS) | tee $(OUT_FILE)
test-mocha:
@NODE_ENV=test $(MOCHA) ./test/user.mocha.coffee
test: test-mocha
test!:
@perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh