cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
Subject [03/14] cordova-medic git commit: Adding platform from downloaded folder instead of npm package
Date Thu, 13 Nov 2014 05:24:43 GMT
Adding platform from downloaded folder instead of npm package


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

Branch: refs/heads/master
Commit: f15c3daa3d54bb666ae5d7430da017f3cbbd209f
Parents: 8e6e2b6
Author: maria.bukharina <maria.bukharina@akvelon.com>
Authored: Wed Oct 8 11:38:26 2014 +0400
Committer: maria.bukharina <maria.bukharina@akvelon.com>
Committed: Wed Oct 8 11:38:26 2014 +0400

----------------------------------------------------------------------
 master.cfg | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/f15c3daa/master.cfg
----------------------------------------------------------------------
diff --git a/master.cfg b/master.cfg
index 82cde0d..352d977 100644
--- a/master.cfg
+++ b/master.cfg
@@ -228,7 +228,14 @@ class PlatformTestBase(object):
         ]
 
     def platform_add_steps(self):
-        return [ShellCommand(command=["../cordova-cli/bin/cordova", "platform", "add", self.platform],
workdir='build/mobilespec', haltOnFailure=True, description='Platform Add')]
+        platform = self.platform
+        # required by coho tools to correctly resolve repo location
+        if platform == "blackberry10":
+            platform = "blackberry"
+        if platform == "windows8":
+            platform = "windows"
+        platformPath = "../cordova-" + platform
+        return [ShellCommand(command=["../cordova-cli/bin/cordova", "platform", "add", platformPath],
workdir='build/mobilespec', haltOnFailure=True, description='Platform Add')]
 
     def build_cordovajs_steps(self):
         return [


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


Mime
View raw message