diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-04 22:19:50 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-04 22:19:50 +0100 |
commit | 8895eb97be7f86d751c518714af4b631229a774c (patch) | |
tree | 40e33d954a50964ba8ae36f5e63fa5c6527616d0 /buildbot/master.cfg | |
parent | e692660bfbca303e6c6e12ff252afd064a36825f (diff) | |
download | deployment-8895eb97be7f86d751c518714af4b631229a774c.tar.gz deployment-8895eb97be7f86d751c518714af4b631229a774c.tar.bz2 deployment-8895eb97be7f86d751c518714af4b631229a774c.zip |
abstracting the Git step
Diffstat (limited to 'buildbot/master.cfg')
-rw-r--r-- | buildbot/master.cfg | 59 |
1 files changed, 19 insertions, 40 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg index 3f311b4..a35601d 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -127,15 +127,18 @@ c["schedulers"] = [ # what steps, and which workers can execute them. Note that any particular build will # only take place on one worker. +def git_step(repo): + return Git(repourl=repo, + mode="full", + method="fresh", + logEnviron=False, + alwaysUseLatest=True, + haltOnFailure=True, + branch="master") + WALLET_FACTORY = util.BuildFactory() -WALLET_FACTORY.addStep(Git( - repourl="git://git.taler.net/wallet-webex.git", - mode="full", - method="fresh", - logEnviron=False, - alwaysUseLatest=True, - haltOnFailure=True, - branch="master")) +WALLET_FACTORY.addStep(git_step( + "git://git.taler.net/wallet-webex.git")) WALLET_FACTORY.addStep(ShellCommand( name="configuration", description="Running configure script", @@ -157,14 +160,8 @@ DEBUG_FACTORY.addStep(ShellCommand( command=["echo", "I'm here!"])) LINT_FACTORY = util.BuildFactory() -LINT_FACTORY.addStep(Git( - repourl='git://git.taler.net/bank.git', - mode="full", - method="fresh", - logEnviron=False, - alwaysUseLatest=True, - haltOnFailure=True, - branch="master")) +LINT_FACTORY.addStep(git_step( + "git://git.taler.net/bank.git") LINT_FACTORY.addStep(ShellCommand( name="code linter", description="running static analysis", @@ -175,14 +172,8 @@ LINT_FACTORY.addStep(ShellCommand( "talerbank/"])) LCOV_FACTORY = util.BuildFactory() -LCOV_FACTORY.addStep(Git( - repourl='git://git.taler.net/deployment.git', - mode="full", - method='fresh', - logEnviron=False, - alwaysUseLatest=True, - haltOnFailure=True, - branch='master')) +LCOV_FACTORY.addStep(git_step( + 'git://git.taler.net/deployment.git') LCOV_FACTORY.addStep(ShellCommand( name="invalidation", description="Invalidating timestamps", @@ -199,14 +190,8 @@ LCOV_FACTORY.addStep(ShellCommand( "TALER_CHECKDB": "postgresql:///talercheck?host=/home/${USER}/sockets"})) SWITCHER_FACTORY = util.BuildFactory() -SWITCHER_FACTORY.addStep(Git( - repourl='git://git.taler.net/deployment.git', - mode="full", - method="fresh", - logEnviron=False, - alwaysUseLatest=True, - haltOnFailure=True, - branch="master")) +SWITCHER_FACTORY.addStep(git_step( + 'git://git.taler.net/deployment.git') SWITCHER_FACTORY.addStep(ShellCommand( name="build", description="Building inactive blue-green party.", @@ -242,14 +227,8 @@ SELENIUM_FACTORY.addStep(ShellCommand( # this factory builds {api,docs}.taler.net AND {www,stage}.taler.net DOC_FACTORY = util.BuildFactory() -DOC_FACTORY.addStep(Git( - repourl="git://git.taler.net/deployment.git", - mode="full", - method="fresh", - logEnviron=False, - alwaysUseLatest=True, - haltOnFailure=True, - branch='master')) +DOC_FACTORY.addStep(git_step( + "git://git.taler.net/deployment.git") DOC_FACTORY.addStep(ShellCommand( name="build docs", description="Building documentation.", |