Permalink
Browse files

add travis

  • Loading branch information...
fjakobs committed Nov 28, 2012
1 parent a31eab2 commit d473f754eead4f57db1af97924d79219d17b3cd8
Showing with 20 additions and 5 deletions.
  1. +4 −0 .travis.yml
  2. +7 −1 README.md
  3. +2 −3 example/api/index.js
  4. +3 −0 lib/api_test.js
  5. +4 −1 package.json
View
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.8
+ - 0.6
View
@@ -1,4 +1,10 @@
Frontdoor
=========
-Frontdoor is a libarary for creating RESTful API servers.
+Frontdoor is a libarary for creating RESTful API servers.
+
+Continuous Integration status
+-----------------------------
+
+This project is tested with [Travis CI](http://travis-ci.org)
+[![Build Status](https://secure.travis-ci.org/c9/frontdoor.png)](http://travis-ci.org/c9/frontdoor)
View
@@ -9,8 +9,7 @@ module.exports = function() {
todo.add({description: "buy milk"}, function() {});
todo.update({id: 1, done: true}, function() {});
- api.section("todo")
- .get("/", todo.list.bind(todo))
+ api.section("todo").get("/", todo.list.bind(todo))
.put("/", {
params: {
description: {
@@ -60,7 +59,7 @@ Todo.prototype.add = function(params, callback) {
done: false,
description: params.description
};
- callback(null, this.items[id]);
+ callback(null, { id: params.id });
};
Todo.prototype.update = function(params, callback) {
var item = this.items[params.id];
View
@@ -545,6 +545,9 @@ module.exports = {
assert(called);
}
+
+ // test checks can be async
+ // fromString, fromJson
};
!module.parent && require("asyncjs").test.testcase(module.exports).exec();
View
@@ -28,6 +28,9 @@
},
"devDependencies": {
"asyncjs": "~0.0.9",
- "sinon": "~1.3.0"
+ "sinon": "~1.3.0",
+
+ "express": "3.0.3",
+ "ejs": "*"
}
}

0 comments on commit d473f75

Please sign in to comment.