Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 40 lines (34 sloc) 1.061 kb
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 28 29 30 31 32 33 34 35 36 37 38 39 40
compile:
@mkdir -p 'dev'
@make compile-macro & make compile-coffee & ./scripts/watch-src-js && fg
compile-coffee:
./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src ./dev
compile-examples:
./node_modules/coffee-script/bin/coffee -bcw ./examples/*/*.coffee
compile-macro:
./scripts/watch-macro

ROOT := $(shell pwd)
MOCHA_TESTS := $(shell find test/ -name '*.mocha.coffee')
MOCHA := ./node_modules/mocha/bin/mocha
OUT_FILE = "test-output.tmp"

g = "."

test-mocha:
@NODE_ENV=test $(MOCHA) \
--grep "$(g)" \
$(MOCHA_TESTS) | tee $(OUT_FILE)

test-external:
cd $(ROOT)/node_modules/racer-journal-redis/; make test
cd $(ROOT)/node_modules/racer-pubsub-redis/; make test
cd $(ROOT)/node_modules/racer-db-mongo/; make test
cd $(ROOT)

test-fast:
@NODE_ENV=test $(MOCHA) \
--colors \
--reporter spec \
--timeout 500 \
--grep "^(?:(?!@slow).)*$$" \
$(MOCHA_TESTS) | tee $(OUT_FILE)

test: test-mocha
test-all: test-mocha test-external
test!:
@perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh
Something went wrong with that request. Please try again.