Permalink
Browse files

fixed makefile, should run on travis

  • Loading branch information...
1 parent c899dd8 commit 442ce7453ef3298b4108a0cb220eb2ba6e570513 @hallas hallas committed Oct 17, 2013
Showing with 13 additions and 5 deletions.
  1. +8 −3 Makefile
  2. +5 −2 package.json
View
@@ -1,7 +1,12 @@
+MOCHA_OPTS= --check-leaks
+REPORTER = spec
+
build:
@coffee --compile --bare linear_partition.coffee
-test:
- @node test
+test: test-lib
-.PHONY: build test
+test-lib:
+ @NODE_ENV=test ./node_modules/.bin/mocha \
+ --reporter $(REPORTER) \
+ $(MOCHA_OPTS)
View
@@ -20,5 +20,8 @@
"scripts": {
"test": "make test"
},
- "license": "MIT"
-}
+ "license": "MIT",
+ "devDependencies": {
+ "mocha": "~1.13.0"
+ }
+}

0 comments on commit 442ce74

Please sign in to comment.