Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bump minimum Node version to 0.8 and add CI tests
- Removes workaround for node exit not properly flushing on 0.4 and
lower
- Add Travis test runs for each of the supported node version
Fixes CSSLint#378
  • Loading branch information
nschonni committed Jun 5, 2013
1 parent 14899c9 commit 166859f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -2,5 +2,6 @@ language: node_js
node_js:
- "0.8"
- "0.10"
- "0.11"
before_install:
- npm install -g grunt-cli
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
}
],
"engines": {
"node": ">=0.2.0"
"node": ">=0.8.0"
},
"directories": {
"lib": "lib"
Expand Down
11 changes: 1 addition & 10 deletions src/cli/node.js
Expand Up @@ -17,16 +17,7 @@ cli({
},

quit: function(code){

//Workaround for https://github.com/joyent/node/issues/1669

if ((!process.stdout.flush || !process.stdout.flush()) && (parseFloat(process.versions.node) < 0.5)) {
process.once("drain", function () {
process.exit(code || 0);
});
} else {
process.exit(code || 0);
}
process.exit(code || 0);
},

isDirectory: function(name){
Expand Down

0 comments on commit 166859f

Please sign in to comment.