Permalink
Browse files

Closes #183 Added TravisCI support.

Also removed the fs.unlinkSync from cluster/master because fs.renameSync works in 0.6-0.8 in Unices and Windows. So now as a backup just call utilities.file.cpR.
  • Loading branch information...
1 parent 52221f2 commit 88bc3e241946f51e477b14a55e59fbd4b3313b86 @larzconwell larzconwell committed Sep 5, 2012
Showing with 14 additions and 4 deletions.
  1. +6 −0 .travis.yml
  2. +2 −0 README.md
  3. +3 −4 lib/cluster/master.js
  4. +3 −0 package.json
View
@@ -0,0 +1,6 @@
+language: node_js
+node_js:
+ - 0.8
+ - 0.6
+
+install: jake utilities handlebars jade
View
@@ -1,6 +1,8 @@
## Geddy web framework for Node.js
- - -
+[![build status](https://secure.travis-ci.org/mde/geddy.png)](http://travis-ci.org/mde/geddy)
+
### Goals
* Easy to use
@@ -123,10 +123,9 @@ Master.prototype = new (function () {
fs.renameSync(currentLog, archivedLog);
}
catch(e) {
- // cpR doesn't work correctly on Windows either, just blow
- // away the fucking log
- //file.cpR(currentLog, archivedLog);
- fs.unlinkSync(currentLog);
+ // Node 0.6-0.8 renameSync works correctly(Including Windows),
+ // but just in case.
+ file.cpR(currentLog, archivedLog);
}
}
View
@@ -16,6 +16,9 @@
"bin": {
"geddy": "./bin/cli.js"
},
+ "scripts": {
+ "test": "jake test"
+ },
"main": "./lib/geddy",
"repository": {
"type": "git",

0 comments on commit 88bc3e2

Please sign in to comment.