подключил команды сборки и очистки
This commit is contained in:
parent
f3b2e324e2
commit
ff2e2f12db
|
|
@ -1,2 +1,4 @@
|
||||||
inside 'BuildSample/BuildSample.sln' remove NotCompileApp project
|
inside 'BuildSample/BuildSample.sln' remove NotCompileApp project
|
||||||
|
clean 'BuildSample/BuildSample.sln' for 'Release|iPhone'
|
||||||
|
build 'BuildSample/BuildSample.sln' for 'Release|iPhone'
|
||||||
sh echo hello from Rustam
|
sh echo hello from Rustam
|
||||||
|
|
@ -1,12 +1,19 @@
|
||||||
|
from CommandBuilders.CleanBuildCommandBuilder import CleanBuildCommandBuilder
|
||||||
from CommandBuilders.RemoveProjectCommandBuilder import RemoveProjectCommandBuilder
|
from CommandBuilders.RemoveProjectCommandBuilder import RemoveProjectCommandBuilder
|
||||||
from CommandBuilders.ShCommandBuilder import ShCommandBuilder
|
from CommandBuilders.ShCommandBuilder import ShCommandBuilder
|
||||||
|
|
||||||
|
|
||||||
class StepsRunner:
|
class StepsRunner:
|
||||||
def __init__(self):
|
def __init__(self, config):
|
||||||
|
assert config is not None
|
||||||
|
|
||||||
self.shCommandBuilder = ShCommandBuilder()
|
self.shCommandBuilder = ShCommandBuilder()
|
||||||
self.removeProjectBuilder = RemoveProjectCommandBuilder()
|
self.removeProjectBuilder = RemoveProjectCommandBuilder()
|
||||||
|
|
||||||
|
buildUtilPath = config['build_tool']
|
||||||
|
self.cleanBuilder = CleanBuildCommandBuilder(buildUtilPath, 'clean')
|
||||||
|
self.buildBuilder = CleanBuildCommandBuilder(buildUtilPath, 'build')
|
||||||
|
|
||||||
def run(self, content):
|
def run(self, content):
|
||||||
assert content is not None
|
assert content is not None
|
||||||
|
|
||||||
|
|
@ -28,6 +35,12 @@ class StepsRunner:
|
||||||
elif self.removeProjectBuilder.isRemoveProject(line):
|
elif self.removeProjectBuilder.isRemoveProject(line):
|
||||||
cmd = self.removeProjectBuilder.getCommandFor(line)
|
cmd = self.removeProjectBuilder.getCommandFor(line)
|
||||||
cmd.execute()
|
cmd.execute()
|
||||||
|
elif self.cleanBuilder.isCleanBuild(line):
|
||||||
|
cmd = self.cleanBuilder.getCommandFor(line)
|
||||||
|
cmd.execute()
|
||||||
|
elif self.buildBuilder.isCleanBuild(line):
|
||||||
|
cmd = self.buildBuilder.getCommandFor(line)
|
||||||
|
cmd.execute()
|
||||||
else:
|
else:
|
||||||
msg = "unrecognised step. Line: '{0}'".format(line)
|
msg = "unrecognised step. Line: '{0}'".format(line)
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
|
|
@ -12,5 +12,5 @@ ios.steps = 'scripts/IosSteps.txt'
|
||||||
ios.appstore.build_ready = 'true'
|
ios.appstore.build_ready = 'true'
|
||||||
ios.appstore.app_name = 'CoolApp'
|
ios.appstore.app_name = 'CoolApp'
|
||||||
|
|
||||||
ios.staging.build_ready = 'true'
|
#ios.staging.build_ready = 'true'
|
||||||
ios.staging.app_name = 'CoolApp staging'
|
ios.staging.app_name = 'CoolApp staging'
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class TaskRunner:
|
||||||
def runConfig(self, config):
|
def runConfig(self, config):
|
||||||
content = self.getStepsContent(config)
|
content = self.getStepsContent(config)
|
||||||
|
|
||||||
stepsRunner = StepsRunner()
|
stepsRunner = StepsRunner(config)
|
||||||
stepsRunner.run(content)
|
stepsRunner.run(content)
|
||||||
|
|
||||||
def getStepsContent(self, config):
|
def getStepsContent(self, config):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue