taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 8895eb97be7f86d751c518714af4b631229a774c
parent e692660bfbca303e6c6e12ff252afd064a36825f
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Sat,  4 Nov 2017 22:19:50 +0100

abstracting the Git step

Diffstat:
Mbuildbot/master.cfg | 59+++++++++++++++++++----------------------------------------
1 file changed, 19 insertions(+), 40 deletions(-)

diff --git 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.",