CB-11584 Don't try to run Appium tests when --justBuild'ing
diff --git a/lib/ParamedicConfig.js b/lib/ParamedicConfig.js
index 0233eb2..e81f87c 100644
--- a/lib/ParamedicConfig.js
+++ b/lib/ParamedicConfig.js
@@ -44,7 +44,7 @@
 ParamedicConfig.parseFromArguments = function (argv) {
     return new ParamedicConfig({
         platform:             argv.platform,
-        action:               !!argv.justbuild ? 'build' : 'run',
+        action:               !!(argv.justbuild || argv.justBuild) ? 'build' : 'run',
         args:                 (!!argv.browserify ? '--browserify ' : ''),
         plugins:              Array.isArray(argv.plugin) ? argv.plugin : [argv.plugin],
         useTunnel:            !!argv.useTunnel,
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 5e30914..f31cade 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -229,6 +229,7 @@
                 self.waitForTests().then(resolve);
             });
         }
+        return util.TEST_PASSED; // if we're not waiting for a test result, just report tests as passed
     }, function(output) {
         // this trace is automatically available in verbose mode
         // so we check for this flag to not trace twice
@@ -242,6 +243,10 @@
 ParamedicRunner.prototype.runAppiumTests = function (useSauce) {
     var platform = this.config.getPlatformId();
     var self = this;
+    if (self.config.getAction() === 'build') {
+        logger.normal('Just building, so skipping Appium tests...');
+        return Q(util.TEST_PASSED);
+    }
     if (platform !== 'android' && platform !== 'ios') {
         logger.warn('Unsupported platform for Appium test run: ' + platform);
         // just skip Appium tests