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:46 UTC
[06/14] cordova-medic git commit: Create mobile-spec application via
createmobilespec script
Create mobile-spec application via createmobilespec script
Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/81cf92db
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/81cf92db
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/81cf92db
Branch: refs/heads/master
Commit: 81cf92db7022f33cd10f36e8e165f014d87f1607
Parents: 2cde8c0
Author: dmitriy-barkalov <v-...@microsoft.com>
Authored: Thu Oct 23 06:37:11 2014 -0700
Committer: dmitriy-barkalov <v-...@microsoft.com>
Committed: Thu Oct 23 06:37:11 2014 -0700
----------------------------------------------------------------------
master.cfg | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/81cf92db/master.cfg
----------------------------------------------------------------------
diff --git a/master.cfg b/master.cfg
index daa6488..cba5a82 100644
--- a/master.cfg
+++ b/master.cfg
@@ -180,7 +180,6 @@ cli_steps = [
]
plugman_steps = [
- ShellCommand(command=["rm", "-rf", "cordova-*"], workdir='build', haltOnFailure=False, description='Cordova Clean'),
ShellCommand(command=["git", "clone", repos['PLUGMAN'], "cordova-plugman"], workdir='build', haltOnFailure=True, description='Get Plugman'),
ShellCommand(command=["npm", "install"], workdir='build/cordova-plugman', haltOnFailure=True, description='Install Plugman'),
ShellCommand(command=["npm", "test"], workdir='build/cordova-plugman', haltOnFailure=True, description='Test Plugman'),
@@ -243,12 +242,11 @@ class PlatformTestBase(object):
def prepare_mobilespec_steps(self):
return [
- ShellCommand(command=["node", "../cordova-cli/bin/cordova", "plugin", "add", "../cordova-mobile-spec/dependencies-plugin", "--searchpath", ".."], workdir='build/mobilespec', haltOnFailure=True, description='Plugin add'),
+ ShellCommand(command=["npm", "install"], workdir='build/cordova-mobile-spec/createmobilespec', haltOnFailure=True, description='Install createmobilespec'),
+ ShellCommand(command=["cordova-coho/coho", "npm-link"], workdir='build', haltOnFailure=True, description='COHO npm-link'),
+ ShellCommand(command=["cordova-mobile-spec/createmobilespec/createmobilespec", "--" + self.platform, "mobilespec"], workdir='build', haltOnFailure=True, description='Run createmobilespec'),
ShellCommand(command=["node", "../cordova-cli/bin/cordova", "plugin", "add", "../medic/cordova-plugin-medic"], workdir='build/mobilespec', haltOnFailure=True, description='Medic plugin add'),
- # added to handle the moved config.xml (up one directory)
- ShellCommand(command=["cp", "cordova-mobile-spec/config.xml", "mobilespec/config.xml"], workdir='build', haltOnFailure=False, description='Copy config'),
- ShellCommand(command=["node", "medic/updateconfig.js", "--" + self.platform], workdir='build', haltOnFailure=True, description='Update config'),
- ShellCommand(command=["node", "../cordova-cli/bin/cordova", "prepare"], workdir='build/mobilespec', haltOnFailure=True, description='CLI Prepare')
+ ShellCommand(command=["node", "medic/updateconfig.js", "--" + self.platform], workdir='build', haltOnFailure=True, description='Update config')
]
def copy_cordovajs_steps(self):
@@ -265,6 +263,7 @@ class PlatformTestBase(object):
steps.extend(self.init_workspace_steps())
steps.extend(self.repos_clone_steps())
steps.extend(cli_steps)
+ steps.extend(plugman_steps)
steps.extend(self.create_app_steps())
steps.extend(self.platform_add_steps())
steps.extend(self.build_cordovajs_steps())
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org