You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2016/09/23 10:29:54 UTC

cordova-paramedic git commit: Introduced --ci arg

Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 4c6089a58 -> d599d7562


Introduced --ci arg


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

Branch: refs/heads/master
Commit: d599d7562da4d314497c3f6ac5652ffdec148539
Parents: 4c6089a
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Fri Sep 23 13:29:09 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Fri Sep 23 13:29:09 2016 +0300

----------------------------------------------------------------------
 lib/ParamedicConfig.js | 7 ++++++-
 lib/paramedic.js       | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/d599d756/lib/ParamedicConfig.js
----------------------------------------------------------------------
diff --git a/lib/ParamedicConfig.js b/lib/ParamedicConfig.js
index 2a1675c..620b5b8 100644
--- a/lib/ParamedicConfig.js
+++ b/lib/ParamedicConfig.js
@@ -64,7 +64,8 @@ ParamedicConfig.parseFromArguments = function (argv) {
         saucePlatformVersion: argv.saucePlatformVersion && argv.saucePlatformVersion.toString(),
         sauceAppiumVersion:   argv.sauceAppiumVersion && argv.sauceAppiumVersion.toString(),
         skipAppiumTests:      argv.skipAppium,
-        skipMainTests:        argv.skipMainTests
+        skipMainTests:        argv.skipMainTests,
+        ci:                   argv.ci
     });
 };
 
@@ -243,4 +244,8 @@ ParamedicConfig.prototype.getTccDb = function () {
     return this._config.tccDb;
 };
 
+ParamedicConfig.prototype.isCI = function () {
+    return this._config.ci;
+};
+
 module.exports = ParamedicConfig;

http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/d599d756/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index a8ee0ce..ecc8efa 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -138,6 +138,9 @@ ParamedicRunner.prototype.installPlugins = function () {
     if (this.config.getPlatformId() === 'ios') {
         additionalPlugins.push(path.join(__dirname, '../ios-geolocation-permissions-plugin'));
     }
+    if (this.config.isCI()) {
+        additionalPlugins.push(path.join(__dirname, '../ci-plugin'));
+    }
 
     this.pluginsManager.installPlugins(additionalPlugins);
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org