Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 9ce293584 -> 8b9bd605e


Skip ParamedicTargetChooser when --buildOnly

Github close #6


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/8b9bd605
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/8b9bd605
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/8b9bd605

Branch: refs/heads/master
Commit: 8b9bd605e58b6bb6d9e2443c894af92cdd7fbe04
Parents: 9ce2935
Author: sgrebnov <[email protected]>
Authored: Mon May 23 18:34:32 2016 +0300
Committer: sgrebnov <[email protected]>
Committed: Mon May 30 14:08:25 2016 +0300

----------------------------------------------------------------------
 lib/paramedic.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/8b9bd605/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 65ba5ed..8234f59 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -210,8 +210,8 @@ ParamedicRunner.prototype.getCommandForStartingTests = 
function() {
     var cmd  = "cordova " + this.config.getAction() + " " + 
this.config.getPlatformId();
     var paramedicTargetChooser = new 
ParamedicTargetChooser(this.tempFolder.name, this.config.getPlatformId());
 
-    if(self.config.getPlatformId() === "windows" && 
self.config.getArgs().indexOf('appx=8.1-phone') < 0) {
-        //The app is to be run as a store app. So no need to choose a target.
+    if(self.config.getAction() === 'build' || (self.config.getPlatformId() === 
"windows" && self.config.getArgs().indexOf('appx=8.1-phone') < 0)) {
+        //The app is to be run as a store app or just build. So no need to 
choose a target.
         if (self.config.getArgs()) {
             cmd += " " + self.config.getArgs();
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to