Permalink
Browse files

Add Makefile

  • Loading branch information...
1 parent 913bfb7 commit e10a158754cda467804936b5ae7ebb135a9b6c08 @aleafs aleafs committed Nov 5, 2012
Showing with 12 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +10 −0 Makefile
  3. +1 −1 package.json
View
@@ -1,3 +1,4 @@
language: node_js
node_js:
+ - 0.6
- 0.8
View
@@ -0,0 +1,10 @@
+TESTS = test/*.js
+REPORTER = spec
+TIMEOUT = 5000
+MOCHA = ./node_modules/mocha/bin/mocha
+
+test:
+ @npm install
+ @$(MOCHA) --reporter $(REPORTER) --timeout $(TIMEOUT) $(MOCHA_OPTS) $(TESTS)
+
+.PHONY: test
View
@@ -4,7 +4,7 @@
"description": "Generate your documentation.",
"main": "index.js",
"scripts": {
- "test": "mocha"
+ "test": "make test"
},
"bin": {
"doxmate": "./bin/doxmate"

0 comments on commit e10a158

Please sign in to comment.