добавил команду публикации в TF. Проверить нельзя из-за кэша

This commit is contained in:
rzaitov 2013-11-01 20:15:24 +04:00
parent 8a5ba62209
commit 6aea4970be
4 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,24 @@
from commands.TestflightCommand import TestflightCommand
from parser.TestflightParser import TestflightParser
class TestflightCommandBuilder:
def __init__(self):
pass
def isTestflight(self, line):
assert line is not None
parser = TestflightParser()
isValid = parser.isValidLine(line)
return isValid
def getCommandFor(self, line):
assert line is not None
parser = TestflightParser()
result = parser.parseLine(line)
command = TestflightCommand(result['path'], result['api_token'], result['team_token'], result['notes'])
return command

View File

@ -0,0 +1,8 @@
from CommandBuilders.TestflightCommandBuilder import TestflightCommandBuilder
line = "publish 'Output/Appstore/Artifacts/BuildSample-1.2.3.ipa' to testflight notes = 'Hello' api_token = '0e6925075d4fc10fed0e7bbf43fa6894_NjQ0OTI2MjAxMi0wOS0yNSAxMTo0MDozNi40OTY5MjU' team_token = 'c5c3cf7a6dae2bea4382dfbd181a2075_Mjc4ODkwMjAxMy0wOS0yOSAxNDowOTo1OC40Mzg5MTY'"
builder = TestflightCommandBuilder()
command = builder.getCommandFor(line)
command.execute()

View File

@ -1,7 +1,7 @@
from utils.TestflightPublisher import TestFlightPublisher
class PublishToTestFlightCommand:
class TestflightCommand:
def __init__(self, pathToFile, api_token, team_token, notes):
assert pathToFile is not None

View File

@ -18,4 +18,5 @@ os.chdir(baseDir)
#import ManualTests.remove_project
#import ManualTests.infoplist_test
#import ManualTests.clean_test
import Tests.ManualTests.testflight_test