Skip to content

Commit

Permalink
Fix the renderable behavior of Git
Browse files Browse the repository at this point in the history
Closes #283

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
  • Loading branch information
ibell committed Dec 4, 2014
1 parent 7dfbe40 commit b582a5d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dev/buildbot/master/master.cfg
Expand Up @@ -232,19 +232,11 @@ def gitModeInput(props):
return 'full'
else:
return 'incremental'

@properties.renderer
def gitMethodInput(props):
""" If we are doing a full clean, this will tell it to clobber all the files """
if props.getProperty('fullclean', default = False):
return 'clobber'
else:
return None

# A centralised method to provide the objects with some presets
def getBaseFactory(gitMode = 'incremental'):
factory = BuildFactory()
factory.addStep(Git(repourl='git://github.com/CoolProp/CoolProp', mode=gitModeInput, method = gitMethodInput, submodules = True, progress=True, haltOnFailure = True))
factory.addStep(Git(repourl='git://github.com/CoolProp/CoolProp', mode=gitModeInput, method = 'fresh', submodules = True, progress=True, haltOnFailure = True))
return factory

def docActivateCmd():
Expand Down

0 comments on commit b582a5d

Please sign in to comment.