Browse files

add testing directives

  • Loading branch information...
1 parent 0b7db26 commit ff10e339e71f24e0c1efe8b77be6ddf40b196d2a @ericz ericz committed Jul 19, 2012
Showing with 19 additions and 1 deletion.
  1. +4 −0 .travis.yml
  2. +9 −1 Makefile
  3. +6 −0 package.json
View
4 .travis.yml
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.6
+ - 0.8
View
10 Makefile
@@ -1,4 +1,12 @@
default: compress
compress:
- @node bin/build.js;
+ @node bin/build.js;
+
+test:
+ @mocha \
+ -t 2000 \
+ $(TESTFLAGS) \
+ $(TESTS)
+
+.PHONY: test
View
6 package.json
@@ -9,12 +9,18 @@
"url": "git://github.com/binaryjs/binaryjs.git"
},
"main": "lib/server.js",
+ "scripts": {
+ "test": "make test"
+ },
"engines": {
"node": ">=0.6.0"
},
"dependencies": {
"streamws" : ">=0.0.0",
"binarypack": ">=0.0.0",
"streamers": ">=0.1.0"
+ },
+ "devDependencies": {
+ "mocha": "~1.3.0"
}
}

0 comments on commit ff10e33

Please sign in to comment.