habitica/Makefile

21 lines
498 B
Makefile
Raw Normal View History

compile:
./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src
test-casper:
casperjs test ./test
2012-09-23 01:04:34 +00:00
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:
2012-09-24 15:28:01 +00:00
@NODE_ENV=test $(MOCHA) ./test/user.mocha.coffee
2012-09-23 01:04:34 +00:00
test: test-mocha
test!:
@perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh