Удалил неиспользуемые файлы
This commit is contained in:
parent
65266b523d
commit
2f2dc3c698
|
|
@ -1,6 +1,6 @@
|
|||
from commands.CleanBuildCommands.BuildCommand import BuildCommand
|
||||
from commands.CleanBuildCommands.CleanCommand import CleanCommand
|
||||
from parser.CleanBuildParser.CleanBuildParser import CleanBuildParser
|
||||
from parser import CleanBuildParser
|
||||
|
||||
|
||||
class CleanBuildCommandBuilder:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import unittest
|
||||
from parser.CleanBuildParser.CleanBuildParser import CleanBuildParser
|
||||
from parser import CleanBuildParser
|
||||
|
||||
|
||||
class TestCleanBuildParser(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
from utils.testflight.TestflightPublisher import TestFlightPublisher
|
||||
|
||||
|
||||
class PublishToTestFlightCommand:
|
||||
def __init__(self, api_token, team_token, notes):
|
||||
self._publisher = TestFlightPublisher(api_token, team_token, notes)
|
||||
|
||||
def execute(self):
|
||||
self._publisher.Publish()
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
|
||||
|
||||
class BuildCommand:
|
||||
def SetCommandPrefix(self, value):
|
||||
self._command_prefix = value
|
||||
self._cmd_prefix_len = len(self._command_prefix)
|
||||
|
||||
self._prefix_name= 'prefix'
|
||||
self._app_name= 'app'
|
||||
self._key_name = 'key'
|
||||
|
||||
def __init__(self, config, cmd_prefix, separator=' '):
|
||||
self._separator = separator
|
||||
self._config = config
|
||||
self.SetCommandPrefix(cmd_prefix)
|
||||
|
||||
|
||||
def _parseConfig(self):
|
||||
return None
|
||||
|
||||
|
||||
def FetchAllKeysFromConfig(self):
|
||||
all_keys = []
|
||||
|
||||
for k in self._config:
|
||||
if k.startswith(self._command_prefix):
|
||||
all_keys.append(k)
|
||||
|
||||
print all_keys
|
||||
return all_keys
|
||||
|
||||
|
||||
def ParseValueFromToken(self, value_token):
|
||||
value = value_token
|
||||
|
||||
if value_token.startswith('@'):
|
||||
key = value_token[1:]
|
||||
value = self._config[key]
|
||||
|
||||
return value
|
||||
|
||||
|
||||
def execute(self):
|
||||
return None
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import commands.build_command as bcmd
|
||||
import utils.testflight.testflight_publisher as tf
|
||||
|
||||
|
||||
class PublishToTestFlightCommand(bcmd.BuildCommand):
|
||||
def __init__(self, api_token, team_token, notes):
|
||||
self._publisher = tf.TestFlightPublisherBase(api_token, team_token, notes)
|
||||
|
||||
def execute(self):
|
||||
self._publisher.Publish()
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
import parser.StringValueParser as parser
|
||||
|
||||
class AttributeNameParser(parser.StringValueParser):
|
||||
def __init__(self, attribute_name, model):
|
||||
parser.StringValueParser.__init__(self, attribute_name, model)
|
||||
|
||||
def ProcessToken(self, token):
|
||||
self._model.rel_path = ''
|
||||
|
|
@ -1 +0,0 @@
|
|||
__author__ = 'rzaitov'
|
||||
|
|
@ -1 +0,0 @@
|
|||
__author__ = 'rzaitov'
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
class StringValueParser:
|
||||
def __init__(self, valid_string, model):
|
||||
self._valid_string = valid_string
|
||||
self._model = model
|
||||
|
||||
def IsTokenValid(self, token):
|
||||
return token == self._valid_string
|
||||
|
||||
def ProcessToken(self, token):
|
||||
pass
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
class Token():
|
||||
def __init__(self, content, type):
|
||||
self.content = content
|
||||
self.type = type
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
from subprocess import call
|
||||
|
||||
|
||||
class TestFlightPublisherBase:
|
||||
class TestFlightPublisher:
|
||||
DefaultNotes = 'This build was uploaded via the upload API'
|
||||
|
||||
def __init__(self, api_token, team_token, notes=DefaultNotes):
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
import os
|
||||
from utils import testflight as tf
|
||||
|
||||
|
||||
class TestFlightPublisher(tf.TestFlightPublisherBase):
|
||||
def __init__(self, config):
|
||||
self._config = config
|
||||
|
||||
api_token = config['tf_api_token']
|
||||
team_token = config['tf_team_token']
|
||||
notes = config.get('ft_notes', None)
|
||||
|
||||
tf.TestFlightPublisherBase.__init__(self, api_token, team_token, notes)
|
||||
|
||||
def Publish(self):
|
||||
sln_path = self._config['sln_path']
|
||||
sln_dir = os.path.dirname(sln_path)
|
||||
|
||||
ipa_rel_path = 'BuildSample/bin/iPhone/Release/BuildSample-{0}.ipa'.format(self._config['version'])
|
||||
ipa_abs_path = os.path.join(sln_dir, ipa_rel_path)
|
||||
|
||||
return tf.TestFlightPublisherBase.Publish(self, ipa_abs_path)
|
||||
Loading…
Reference in New Issue