mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
trevis testing with sh
This commit is contained in:
parent
eafe69445e
commit
8e0df8016d
2 changed files with 13 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "cloudcmd",
|
||||
"version": "0.0.1",
|
||||
"scripts":{"test":"./test/test.sh","start": "server.js"},
|
||||
"scripts":{"test":"node test/test.js","start": "server.js"},
|
||||
"engines": { "node": "0.6.x" },
|
||||
"subdomain": "cloudcmd"
|
||||
}
|
||||
14
test/test.js
14
test/test.js
|
|
@ -1,2 +1,12 @@
|
|||
#!/usr/bin/env node
|
||||
console.log('all good');
|
||||
var util = require('util'),
|
||||
exec = require('child_process').execFile,
|
||||
child;
|
||||
|
||||
child = exec('ls',
|
||||
function (error, stdout, stderr) {
|
||||
console.log('stdout: ' + stdout);
|
||||
console.log('stderr: ' + stderr);
|
||||
if (error !== null) {
|
||||
console.log('exec error: ' + error);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue