mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-29 07:04:37 +00:00
ref #14 fixed custom builds
This commit is contained in:
parent
4e5718cc3d
commit
5058d6cf0c
@ -12,9 +12,28 @@ class Make(BaseModule):
|
|||||||
def __init__(self, platform):
|
def __init__(self, platform):
|
||||||
BaseModule.__init__(self,
|
BaseModule.__init__(self,
|
||||||
platform,
|
platform,
|
||||||
util.Interpolate('%(prop:project)s'))
|
self.getProject())
|
||||||
self.tempRepoDir = ""
|
self.tempRepoDir = ""
|
||||||
|
|
||||||
|
def getProject(self):
|
||||||
|
|
||||||
|
@util.renderer
|
||||||
|
def cmdWraper(step):
|
||||||
|
repository = step.getProperty('repository')
|
||||||
|
|
||||||
|
if not len(repository):
|
||||||
|
return "build"
|
||||||
|
|
||||||
|
repository = repository.replace('.git', '')
|
||||||
|
begin = repository.rfind('/')
|
||||||
|
begin = max(repository.rfind('/', 0, begin),
|
||||||
|
repository.rfind(':', 0, begin))
|
||||||
|
|
||||||
|
project = repository[begin + 1:len(repository)]
|
||||||
|
return project
|
||||||
|
|
||||||
|
return cmdWraper
|
||||||
|
|
||||||
def isSupport(self, step):
|
def isSupport(self, step):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user