不要怂,就是干,撸起袖子干!

Commit 260fc6b4 by Jan Aagaard Meier

Travis bump

1 parent 9f3d170d
{
"globals": {
"jasmine": false,
"spyOn": false,
"it": false,
"console": false,
"describe": false,
"expect": false,
"beforeEach": false,
"waits": false,
"waitsFor": false,
"runs": false
},
"camelcase": true,
"curly": true,
"forin": true,
"indent": 2,
"unused": true,
"asi": true,
"evil": false,
"laxcomma": true
}
\ No newline at end of file
...@@ -21,5 +21,4 @@ language: node_js ...@@ -21,5 +21,4 @@ language: node_js
node_js: node_js:
# - 0.6 # - 0.6
- 0.8 - 0.8
# - 0.9 # - 0.9
\ No newline at end of file
No preview for this file type
var fs = require('fs'),
child_process = require('child_process');
var specs = [];
var walk = function(path, callback) {
var files = fs.readdirSync(path);
var count = files.length;
files.forEach(function(file) {
fs.stat(path + '/' + file, function (err, stat) {
if (stat && stat.isDirectory()) {
walk(path + '/' + file, function() {
count--;
if (count === 0) {
callback();
}
});
} else {
if (file.indexOf(".spec.js") !== -1) {
specs.push(path+'/'+file);
}
count--;
if (count === 0) {
callback();
}
}
});
});
};
walk(__dirname, function () {
var i = 0;
var exec = function () {
var spec = specs[i++];
if (spec) {
var child = child_process.exec('node ' + spec, null, function (err, stdout, sterr) {
exec();
});
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);
}
}
exec();
});
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!