Permalink
Browse files

Test using Travis CI.

  • Loading branch information...
1 parent 5fd5ba6 commit 0a9f7cb15536009a793079180e1acd12d663c01f @jaredhanson committed Jul 11, 2013
Showing with 28 additions and 5 deletions.
  1. +6 −0 .travis.yml
  2. +20 −3 Makefile
  3. +1 −1 index.js
  4. +1 −1 package.json
View
@@ -0,0 +1,6 @@
+language: "node_js"
+node_js:
+ - "0.4"
+ - "0.6"
+ - "0.8"
+ - "0.10"
View
@@ -8,13 +8,17 @@ TESTS = test/*.test.js
MOCHA = ./node_modules/.bin/mocha
test: test-node
-test-node:
+test-node: node_modules
$(MOCHA) \
--reporter spec \
--require test/bootstrap/node $(TESTS)
+node_modules:
+ npm install
+
+
# ==============================================================================
-# Static Analysis
+# Code Quality
# ==============================================================================
JSHINT = jshint
@@ -24,4 +28,17 @@ lint:
$(JSHINT) $(SOURCES)
-.PHONY: test test-node hint lint
+# ==============================================================================
+# Clean
+# ==============================================================================
+
+clean:
+ rm -rf build
+
+clobber: clean
+ rm -rf node_modules
+ rm -rf components
+ rm -rf test/www/js/lib
+
+
+.PHONY: test test-node hint lint clean clobber
View
@@ -4,7 +4,7 @@
* var a = { foo: 'bar' }
* , b = { bar: 'baz' };
*
- * utils.merge(a, b);
+ * merge(a, b);
* // => { foo: 'bar', bar: 'baz' }
*
* @param {Object} a
View
@@ -34,6 +34,6 @@
"test": "node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js"
},
"engines": {
- "node": ">= 0.6.0"
+ "node": ">= 0.4.0"
}
}

0 comments on commit 0a9f7cb

Please sign in to comment.