[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: Refactoring build
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: Refactoring buildbot |
Date: |
Fri, 17 Feb 2017 15:36:29 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 1335c16 Refactoring buildbot
1335c16 is described below
commit 1335c163026a7aea4e50f2782044dccbf720250c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Feb 17 15:36:21 2017 +0100
Refactoring buildbot
---
buildbot/master.cfg | 79 ++++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 66 insertions(+), 13 deletions(-)
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index cc30d66..54213be 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -15,7 +15,8 @@ c = BuildmasterConfig = {}
# The 'workers' list defines the set of recognized workers. Each element is
# a Worker object, specifying a unique worker name and password. The same
# worker name and password must be configured on the worker.
-c['workers'] = [worker.Worker("example-worker", "pass")]
+c['workers'] = [worker.Worker("lcov-worker", "lcov-pass"),
+ worker.Worker("selenium-worker", "selenium-pass")]
# 'protocols' contains information about protocols which master will use for
# communicating with workers. You must define at least 'port' option that
workers
@@ -31,7 +32,15 @@ c['protocols'] = {'pb': {'port': 9989}}
c['change_source'] = []
c['change_source'].append(changes.GitPoller(
- 'git://github.com/buildbot/pyflakes.git',
+ 'git://taler.net/wallet-webex',
+ workdir='gitpoller-workdir', branch='master',
+ pollinterval=300))
+c['change_source'].append(changes.GitPoller(
+ 'git://taler.net/merchant',
+ workdir='gitpoller-workdir', branch='master',
+ pollinterval=300))
+c['change_source'].append(changes.GitPoller(
+ 'git://taler.net/exchange',
workdir='gitpoller-workdir', branch='master',
pollinterval=300))
@@ -45,10 +54,10 @@ c['schedulers'].append(schedulers.SingleBranchScheduler(
name="all",
change_filter=util.ChangeFilter(branch='master'),
treeStableTimer=None,
- builderNames=["runtests"]))
+ builderNames=["lcov-builder", "selenium-builder"]))
c['schedulers'].append(schedulers.ForceScheduler(
name="force",
- builderNames=["runtests"]))
+ builderNames=["lcov-builder", "selenium-builder"]))
####### BUILDERS
@@ -56,17 +65,47 @@ c['schedulers'].append(schedulers.ForceScheduler(
# what steps, and which workers can execute them. Note that any particular
build will
# only take place on one worker.
-factory = util.BuildFactory()
-# check out the source
-factory.addStep(steps.Git(repourl='git://github.com/buildbot/pyflakes.git',
mode='incremental'))
-# run the tests (note that this will require that 'trial' is installed)
-factory.addStep(steps.ShellCommand(command=["trial", "pyflakes"]))
-
+# FIXME: the bad side of these builders is that they expect the worker's
environment
+# to be _already_ set up (codedbases, scripts, etc). In other words, it's not
"self-contained".
+
+lcov_factory = util.BuildFactory()
+
+lcov_factory.addStep(Git(repourl='git://git.taler.net/deployment.git',
+ mode='full',
+ method='fresh',
+ alwaysUseLatest=True,
+ haltOnFailure=True,
+ branch='master'))
+lcov_factory.addStep(ShellCommand(name="invalidation",
+ description="Invalidating timestamps",
+ descriptionDone="timestamps invalidated",
+ command=["./invalidate.sh"],
+ workdir="build/taler-build"))
+lcov_factory.addStep(ShellCommand(name="builder",
+ description="Compiling..",
+ descriptionDone="lcov files generated",
+ command=["make", "lcov"],
+ workdir="build/taler-build",
+ env={'PATH': "${HOME}/local/bin:${PATH}",
+ 'TALER_CHECKDB':
"postgresql:///talercheck?host=/home/${USER}/sockets"}))
+
+selenium_factory = util.BuildFactory()
+selenium_factory.addStep(ShellCommand(name="selenium",
+ description="Headless browser test",
+ descriptionDone="Test finished",
+ command=["launch_selenium_test"],
+ env={'PATH':
"${HOME}/local/bin:${PATH}"}))
c['builders'] = []
+
+c['builders'].append(
+ util.BuilderConfig(name="lcov-builder",
+ workernames=["lcov-worker"],
+ factory=lcov_factory))
+
c['builders'].append(
- util.BuilderConfig(name="runtests",
- workernames=["example-worker"],
- factory=factory))
+ util.BuilderConfig(name="selenium-builder",
+ workernames=["selenium-worker"],
+ factory=selenium_factory))
####### BUILDBOT SERVICES
@@ -76,6 +115,20 @@ c['builders'].append(
c['services'] = []
+c['services'] = []
+
+from buildbot.plugins import reporters
+irc = reporters.IRC("irc.eu.freenode.net", "taler-bb",
+ useColors=False,
+ channels=[{"channel": "#taler"}],
+ password="taler-bb-pass19",
+ notify_events={
+ 'exception': 1,
+ 'successToFailure': 1,
+ 'failureToSuccess': 1,
+})
+c['services'].append(irc)
+
####### PROJECT IDENTITY
# the 'title' string will appear at the top of this buildbot installation's
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: Refactoring buildbot,
gnunet <=