From d623a717eb5d5a764743309190c313c5a9a2177c Mon Sep 17 00:00:00 2001 From: rzaitov Date: Fri, 1 Nov 2013 13:33:52 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=83=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B1=D1=8D?= =?UTF-8?q?=D0=BA=D0=B0=D0=BF=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/IosSteps.txt | 1 + scripts/StepRunner/StepsRunner.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/scripts/IosSteps.txt b/scripts/IosSteps.txt index a83f11a..a138990 100644 --- a/scripts/IosSteps.txt +++ b/scripts/IosSteps.txt @@ -1,3 +1,4 @@ +create backup for 'BuildSample' inside 'BuildSample/BuildSample.sln' remove NotCompileApp project clean 'BuildSample/BuildSample.sln' for 'Release|iPhone' build 'BuildSample/BuildSample.sln' for 'Release|iPhone' diff --git a/scripts/StepRunner/StepsRunner.py b/scripts/StepRunner/StepsRunner.py index f051f21..d05c094 100644 --- a/scripts/StepRunner/StepsRunner.py +++ b/scripts/StepRunner/StepsRunner.py @@ -1,4 +1,5 @@ from CommandBuilders.CleanBuildCommandBuilder import CleanBuildCommandBuilder +from CommandBuilders.CreateBackupCommandBuilder import CreateBackupCommandBuilder from CommandBuilders.RemoveProjectCommandBuilder import RemoveProjectCommandBuilder from CommandBuilders.ShCommandBuilder import ShCommandBuilder @@ -9,6 +10,7 @@ class StepsRunner: self.shCommandBuilder = ShCommandBuilder() self.removeProjectBuilder = RemoveProjectCommandBuilder() + self.createBackupBuilder = CreateBackupCommandBuilder() buildUtilPath = config['build_tool'] self.cleanBuilder = CleanBuildCommandBuilder(buildUtilPath, 'clean') @@ -41,6 +43,9 @@ class StepsRunner: elif self.buildBuilder.isCleanBuild(line): cmd = self.buildBuilder.getCommandFor(line) cmd.execute() + elif self.createBackupBuilder.isCreateBackup(line): + cmd = self.createBackupBuilder.getCommandFor(line) + cmd.execute() else: msg = "unrecognised step. Line: '{0}'".format(line) raise Exception(msg) \ No newline at end of file