Merge branch 'BS-16'

This commit is contained in:
rzaitov 2013-11-05 15:51:48 +04:00
commit 9a20178801
3 changed files with 11 additions and 12 deletions

View File

@ -8,6 +8,7 @@ from CommandBuilders.PatchInfoplistCommandBuilder import PatchInfoplistCommandBu
from CommandBuilders.RemoveProjectCommandBuilder import RemoveProjectCommandBuilder
from CommandBuilders.RestoreBackupCommandBuilder import RestoreBackupCommandBuilder
from CommandBuilders.ShCommandBuilder import ShCommandBuilder
from CommandBuilders.TestflightCommandBuilder import TestflightCommandBuilder
class StepsRunner:
@ -28,6 +29,7 @@ class StepsRunner:
self.patchCsproj = PatchCsprojCommandBuilder(config, self.valueProvider)
self.patchInfoPlist = PatchInfoplistCommandBuilder(self.valueProvider)
self.copyBuilder = CopyCommandBuilder()
self.testflightBuilder = TestflightCommandBuilder()
buildUtilPath = config['build_tool']
self.cleanBuilder = CleanBuildCommandBuilder(buildUtilPath, 'clean')
@ -48,37 +50,30 @@ class StepsRunner:
def processLine(self, line):
if self.shCommandBuilder.isShCommand(line):
cmd = self.shCommandBuilder.getCommandFor(line)
cmd.execute()
elif self.removeProjectBuilder.isRemoveProject(line):
cmd = self.removeProjectBuilder.getCommandFor(line)
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()
elif self.createBackupBuilder.isCreateBackup(line):
cmd = self.createBackupBuilder.getCommandFor(line)
cmd.execute()
elif self.createDirs.isMakeDirsCommand(line):
cmd = self.createDirs.getCommandFor(line)
cmd.execute()
elif self.patchCsproj.isPatchCsproj(line):
cmd = self.patchCsproj.getCommandFor(line)
cmd.execute()
elif self.patchInfoPlist.isPatchInfoPlist(line):
cmd = self.patchInfoPlist.getCommandFor(line)
cmd.execute()
elif self.copyBuilder.isCopy(line):
cmd =self.copyBuilder.getCommandFor(line)
cmd.execute()
elif self.restoreFromBackupBuilder.isRestoreBackup(line):
cmd = self.restoreFromBackupBuilder.getCommandFor(line)
cmd.execute()
elif self.deleteBackupBuilder.isDeleteBackup(line):
cmd =self.deleteBackupBuilder.getCommandFor(line)
cmd.execute()
elif self.testflightBuilder.isTestflight(line):
cmd = self.testflightBuilder.getCommandFor(line)
else:
msg = "unrecognised step. Line: '{0}'".format(line)
raise Exception(msg)
raise Exception(msg)
cmd.execute()

View File

@ -19,5 +19,7 @@ create dirs 'Output/Appstore/Artifacts'
copy 'BuildSample/BuildSample/Output/BuildSample-{@version}.ipa' to 'Output/Appstore/Artifacts'
sh cp -a BuildSample/BuildSample/Output/ Output/Appstore/
publish 'Output/Appstore/Artifacts/BuildSample-{@version}.ipa' to testflight notes = 'Hello' api_token = '{@tf_api_token}' team_token = '{@tf_team_token}'
restore from backup
delete backup

View File

@ -4,6 +4,8 @@ version = '0.0.0'
# ios platform settings
ios.steps = 'scripts/IosSteps.txt'
ios.tf_api_token = '0e6925075d4fc10fed0e7bbf43fa6894_NjQ0OTI2MjAxMi0wOS0yNSAxMTo0MDozNi40OTY5MjU'
ios.tf_team_token = 'c5c3cf7a6dae2bea4382dfbd181a2075_Mjc4ODkwMjAxMy0wOS0yOSAxNDowOTo1OC40Mzg5MTY'
# android platform settings
# android.steps = 'AndroidSteps.txt'