You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2016/03/04 01:35:50 UTC
[12/50] cordova-paramedic git commit: Run shelljs scripts in silent
mode where possuble
Run shelljs scripts in silent mode where possuble
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/6815d668
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/6815d668
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/6815d668
Branch: refs/heads/master
Commit: 6815d6685622dd2fc697979838577962564599a5
Parents: 36f3bdc
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Mar 11 13:48:54 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Mar 11 13:48:54 2015 -0700
----------------------------------------------------------------------
main.js | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/6815d668/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index ff83003..66843c0 100755
--- a/main.js
+++ b/main.js
@@ -54,25 +54,29 @@ function createTempProject() {
}
function installPlugins() {
- //console.log("cordova-paramedic :: installing " + plugin);
- var installExitCode = shell.exec('cordova plugin add ' + plugin).code;
+ console.log("cordova-paramedic :: installing " + plugin);
+
+ var installExitCode = shell.exec('cordova plugin add ' + plugin,
+ {silent:true}).code;
if(installExitCode != 0) {
console.error('Failed to install plugin : ' + plugin);
cleanUpAndExitWithCode(1);
return;
}
- //console.log("cordova-paramedic :: installing " + path.join(plugin,'tests'));
- installExitCode = shell.exec('cordova plugin add ' + path.join(plugin,'tests')).code;
+ console.log("cordova-paramedic :: installing " + path.join(plugin,'tests'));
+ installExitCode = shell.exec('cordova plugin add ' + path.join(plugin,'tests'),
+ {silent:true}).code;
if(installExitCode != 0) {
console.error('Failed to find /tests/ for plugin : ' + plugin);
cleanUpAndExitWithCode(1);
return;
}
- //console.log("cordova-paramedic :: installing plugin-test-framework");
- installExitCode = shell.exec('cordova plugin add https://github.com/apache/cordova-plugin-test-framework').code;
+ console.log("cordova-paramedic :: installing plugin-test-framework");
+ installExitCode = shell.exec('cordova plugin add https://github.com/apache/cordova-plugin-test-framework',
+ {silent:true}).code;
if(installExitCode != 0) {
console.error('cordova-plugin-test-framework');
cleanUpAndExitWithCode(1);
@@ -83,9 +87,9 @@ function installPlugins() {
function addAndRunPlatform() {
setConfigStartPage();
- //console.log("cordova-paramedic :: adding platform and running");
- shell.exec('cordova platform add ' + platformId);
- shell.exec('cordova prepare');
+ console.log("cordova-paramedic :: adding platform");
+ shell.exec('cordova platform add ' + platformId,{silent:true});
+ shell.exec('cordova prepare',{silent:true});
// limit runtime to 5 minutes
setTimeout(function(){
console.error("This test seems to be blocked :: timeout exceeded. Exiting ...");
@@ -93,7 +97,7 @@ function addAndRunPlatform() {
},(TIMEOUT));
shell.exec('cordova emulate ' + platformId.split("@")[0] + " --phone",
- {async:true},
+ {async:true,silent:true},
function(code,output){
if(code != 0) {
console.error("Error: cordova emulate return error code " + code);
@@ -165,8 +169,6 @@ function startServer() {
console.log("platform is not supported :: " + platformId);
cleanUpAndExitWithCode(1);
}
-
- //localtunnel(PORT, tunnelCallback); // TODO
});
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org