adding task for uploading results, displaying test outputs
This commit is contained in:
Родитель
29e5b776d9
Коммит
16caa9cd5e
|
@ -2,6 +2,8 @@ language: node_js
|
|||
node_js:
|
||||
- "0.10"
|
||||
sudo: false
|
||||
after_success:
|
||||
- "jake ci"
|
||||
notifications:
|
||||
email:
|
||||
- touchdevelop-build@microsoft.com
|
||||
|
|
19
Jakefile
19
Jakefile
|
@ -264,9 +264,25 @@ task('clean', [], function () {
|
|||
});
|
||||
|
||||
task('test', [ 'nodeclient/client.js', 'default' ], { async: true }, function () {
|
||||
jake.exec([ 'node nodeclient/client.js buildtest' ], {}, function() { complete(); });
|
||||
jake.exec([ 'node nodeclient/client.js buildtest' ],
|
||||
{ printStdout: true, printStderr: true },
|
||||
function() { complete(); });
|
||||
});
|
||||
|
||||
task('ci', [], { async : true }, function() {
|
||||
if (!process.env.TRAVIS) {
|
||||
console.log("[I] not in travis, skipping upload")
|
||||
complete();
|
||||
} else {
|
||||
assert(process.env.TRAVIS_BUILD_NUMBER)
|
||||
assert(process.env.TD_UPLOAD_KEY)
|
||||
var buildVersion = 80000 + parseInt(process.env.TRAVIS_BUILD_NUMBER);
|
||||
console.log("[I] uploading v" + buildVersion)
|
||||
// TODO: upload data
|
||||
complete();
|
||||
}
|
||||
})
|
||||
|
||||
task('run', [ 'default' ], { async: true }, function (port) {
|
||||
port = port || 80;
|
||||
// XXX fix this too
|
||||
|
@ -297,4 +313,3 @@ task('update-docs', [ 'nodeclient/client.js', 'default' ], { async: true }, func
|
|||
function() { complete(); }
|
||||
)
|
||||
})
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"tsd": "^0.5.7"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jake test"
|
||||
"test": "jake test --trace"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче