cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject spec commit: Speed up createmobilespec.js a bit by adding all plugins in one exec
Date Tue, 07 Oct 2014 19:52:08 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master ce1c1f043 -> 471ab597e


Speed up createmobilespec.js a bit by adding all plugins in one exec


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/471ab597
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/471ab597
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/471ab597

Branch: refs/heads/master
Commit: 471ab597e0c268eac07da53fad917549d61535e8
Parents: ce1c1f0
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Oct 7 15:51:46 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Oct 7 15:51:46 2014 -0400

----------------------------------------------------------------------
 createmobilespec/createmobilespec.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/471ab597/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index 95788bd..73c967d 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -451,12 +451,14 @@ function installPlugins() {
 
         // Install new-style test plugins
         console.log("Adding plugin tests using CLI...");
+        var pluginTestPaths = [];
         shelljs.ls('plugins').forEach(function(plugin) {
           var potential_tests_plugin_xml = path.join('plugins', plugin, 'tests', 'plugin.xml');
           if (fs.existsSync(potential_tests_plugin_xml)) {
-            shelljs.exec(cli + " plugin add " + path.dirname(potential_tests_plugin_xml));
+            pluginTestPaths.push(path.dirname(potential_tests_plugin_xml));
           }
         });
+        shelljs.exec(cli + " plugin add " + pluginTestPaths.join(' '));
 
         popd();
     }


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


Mime
View raw message