You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2014/11/13 06:24:42 UTC

[02/14] cordova-medic git commit: Added platfromVersion from platfrom/VERSION file to Grunt step. Fixed: Running grunt in cordova-js folder failed

Added platfromVersion from platfrom/VERSION file to Grunt step.
Fixed: Running grunt in cordova-js folder failed


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

Branch: refs/heads/master
Commit: 8e6e2b6e67c45d4ebf255eebd3f4db21af590d1a
Parents: cfb3616
Author: maria.bukharina <ma...@akvelon.com>
Authored: Tue Oct 7 19:13:11 2014 +0400
Committer: maria.bukharina <ma...@akvelon.com>
Committed: Tue Oct 7 19:13:11 2014 +0400

----------------------------------------------------------------------
 build_js.js | 14 ++++++++++++++
 master.cfg  |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/8e6e2b6e/build_js.js
----------------------------------------------------------------------
diff --git a/build_js.js b/build_js.js
new file mode 100644
index 0000000..bfbfdae
--- /dev/null
+++ b/build_js.js
@@ -0,0 +1,14 @@
+var fs = require('fs');
+var exec = require('child_process').exec;
+var child;
+
+if(process.argv.slice(2)[0] == 'windows8') {
+	var versionPath = '../cordova-windows/version';
+}
+else {
+	var versionPath = '../cordova-' + process.argv.slice(2)[0] + '/version';
+}
+
+var versionContents = fs.readFileSync(versionPath, "utf-8");
+child = exec('grunt --platformVersion=' + versionContents, function(err,stdout,stderr){
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/8e6e2b6e/master.cfg
----------------------------------------------------------------------
diff --git a/master.cfg b/master.cfg
index 6177748..82cde0d 100644
--- a/master.cfg
+++ b/master.cfg
@@ -233,7 +233,7 @@ class PlatformTestBase(object):
     def build_cordovajs_steps(self):
         return [
             ShellCommand(command=["npm", "install"], workdir='build/cordova-js', description='Install Grunt'),
-            ShellCommand(command=["grunt"], workdir='build/cordova-js', description='Grunt')
+            ShellCommand(command=["node", "../medic/build_js.js", self.platform], workdir='build/cordova-js', description='Grunt')
         ]
 
     def prepare_mobilespec_steps(self):


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