[Xfce4-commits] <xfce-buildbot-scripts:master> master.cfg
buildmaster
noreply at xfce.org
Wed Oct 7 10:32:01 CEST 2009
Updating branch refs/heads/master
to 6941167b3ba071f05d541758b8d02122ba640225 (commit)
from fc209525074a7fcc5d13ad18c1c078c231de9f78 (commit)
commit 6941167b3ba071f05d541758b8d02122ba640225
Author: buildmaster <buildmaster at buildmaster.(none)>
Date: Wed Oct 7 10:30:12 2009 +0200
master.cfg
master.cfg | 119 +++++++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 90 insertions(+), 29 deletions(-)
diff --git a/master.cfg b/master.cfg
index ab0a898..34f45f2 100644
--- a/master.cfg
+++ b/master.cfg
@@ -12,6 +12,33 @@
# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
+
+from buildbot.steps import source,shell
+from buildbot.process import factory
+from buildbot.buildslave import BuildSlave
+from buildbot.changes.pb import PBChangeSource
+from buildbot.scheduler import Scheduler,Periodic
+
+from twisted.python import log
+
+#def analyze(module, change):
+# log.msg("analyze change for module: " + module)
+# for file in change.files:
+## log.msg("changed file:" + file)
+# if file.startswith('xfce/'+module):
+# return True
+# return False
+# #return(any('xfce/'+module+'/' in f for f in change.files))
+
+#def touchesModule(module):
+# log.msg("analyze change for module: " + module)
+# def fileIsImportant(change):
+# for file in change.files:
+# log.msg('changed file is: ' + file)
+# return any('xfce/' + module + '/' in f for f in change.files)
+# return fileIsImportant
+
+
c = BuildmasterConfig = {}
####### BUILDSLAVES
@@ -19,11 +46,10 @@ c = BuildmasterConfig = {}
# the 'slaves' list defines the set of allowable buildslaves. Each element is
# a BuildSlave object, which is created with bot-name, bot-password. These
# correspond to values given to the buildslave's mktap invocation.
-from buildbot.buildslave import BuildSlave
-slaveList = ['buildbotD','buildbotL']
+slaveList = ['debian','lunar']
c['slaves'] = []
for slave in slaveList:
- c['slaves'].append(BuildSlave(slave, '*********', max_builds=1))
+ c['slaves'].append(BuildSlave(slave, '*****************', max_builds=1))
# 'slavePortnum' defines the TCP port to listen on. This must match the value
# configured into the buildslaves (with their --master option)
@@ -36,7 +62,6 @@ c['slavePortnum'] = 9990
# about source code changes. Any class which implements IChangeSource can be
# put here: there are several in buildbot/changes/*.py to choose from.
-from buildbot.changes.pb import PBChangeSource
c['change_source'] = PBChangeSource()
# or, use a PBChangeSource, and then have your repository's commit script run
@@ -50,18 +75,51 @@ c['change_source'] = PBChangeSource()
## configure the Schedulers
-from buildbot.scheduler import Scheduler,Periodic
c['schedulers'] = []
-period = 1440 * 60
+period = 1441 * 60
coreList = ['xfce4-dev-tools', 'libxfce4util', 'xfconf', 'libxfce4ui', 'exo', 'libxfcegui4', 'libxfce4menu', 'thunar', 'thunar-vfs', 'xfce-utils', 'xfce4-appfinder', 'xfce4-panel', 'xfce4-session', 'xfce4-settings', 'xfdesktop', 'xfwm4']
for slave in slaveList:
for module in coreList:
- schedule = Scheduler(name=module + '_on_' + slave + '_on_demand', fileIsImportant=lambda c: any('xfce/'+module+'/' in f for f in c.files), branch='master', treeStableTimer=30, builderNames=[module+'_on_'+slave])
+ prefix = 'core_' + module + '_' + slave
+ #yes this stinks
+ if module == 'xfce4-dev-tools':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce4-dev-tools/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'libxfce4util':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/libxfce4util/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfconf':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce4-dev-tools/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'libxfce4ui':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/libxfce4ui/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'libxfcegui4':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/libxfce4gui/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'exo':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/exo/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'libxfce4menu':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/libxfce4menu/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'thunar':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/thunar/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'thunar-vfs':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/thunar-vfs/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfce-utils':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce-utils/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfce4-appfinder':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce4-appfinder/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfce4-panel':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce4-panel/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfce4-session':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce4-session/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfce4-settings':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfce4-settings/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfdesktop':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfdesktop/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
+ elif module == 'xfwm4':
+ schedule=Scheduler(name=prefix + '_on_demand', fileIsImportant=lambda c: any ('xfce/xfwm4/' in f for f in c.files), branch='master', treeStableTimer=600, builderNames=[prefix])
c['schedulers'].append(schedule)
- periodic=Periodic(module +'_on_'+ slave + '_periodic',[module+'_on_'+slave], period)
+ periodic=Periodic(prefix + '_periodic',[prefix], period)
c['schedulers'].append(periodic)
+
####### BUILDERS
# the 'builders' list defines the Builders. Each one is configured with a
@@ -85,35 +143,38 @@ c['builders'] = []
#some variables
prefix= '/home/buildbot/xfce-install'
-destdir = ''
-#prefix = '/usr'
-#destdir='/home/buildbot/xfce-install'
-path='/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11/bin:/usr/games:/lib/module-init-tools/sbin:/lib/module-init-tools/bin:.:'+destdir+prefix+'/bin'
-pkgconfigpath='/usr/lib/pkgconfig:'+destdir+prefix+'/lib/pkgconfig'
+path='/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11/bin:/usr/games:/lib/module-init-tools/sbin:/lib/module-init-tools/bin:.:'+prefix+'/bin'
+pkgconfigpath='/usr/lib/pkgconfig:'+prefix+'/lib/pkgconfig'
+xdgdatadirs='/usr/share:/usr/local/share:'+prefix+'/share'
+envi={'PATH':path, 'PKG_CONFIG_PATH':pkgconfigpath, 'XDG_DATA_DIRS': xdgdatadirs }
branch = 'master'
-from buildbot.steps import source,shell
-from buildbot.process import factory
for slave in slaveList:
for module in coreList:
- url = 'http://git.xfce.org/git/xfce/' + module
+ url = 'git://git.xfce.org/xfce/' + module
Factory = factory.BuildFactory()
- Factory.addStep(source.Git(repourl=url, branch=branch))
+ Factory.addStep(source.Git(repourl=url, branch=branch, alwaysUseLatest=True))
if module == 'xfwm4':
- Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir }))
+ Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc'],env=envi ))
elif module=='exo':
- Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc','--with-gio-module-dir='+prefix+'/lib/gio/modules'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir }))
- elif module=='libxfcegui4' or module=='libxfce4ui':
- Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc','--with-gladeui-data-root='+prefix+'/share'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir }))
+ Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc','--with-gio-module-dir='+prefix+'/lib/gio/modules'],env=envi ))
+ elif module=='libxfcegui4':
+ Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc','--with-gladeui-data-root='+prefix+'/share','--with-gladeui-module-path='+prefix+'/lib/glade3/modules','--with-libglade-module-path='+prefix+'/lib/glade3/modules'],env=envi ))
+ elif module=='libxfce4ui':
+ Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc','--with-gladeui-catalogdir='+prefix+'/share/glade3/catalog','--with-gladeui-moduledir='+prefix+'/lib/glade3/modules','--with-gladeui-pixmapdir='+prefix+'/usr/share/glade3/pixmaps'],env=envi))
+ elif module=='xfce-utils':
+ Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc','--with-xsession-prefix=' + prefix],env=envi ))
else:
- Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir }))
- Factory.addStep(shell.ShellCommand(name='make distcheck', command=['make','distcheck'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir }))
- Factory.addStep(shell.ShellCommand(name='make', command=['make'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir }))
- Factory.addStep(shell.ShellCommand(name='make install', command=['make','install'],env={'PATH': path, 'PKG_CONFIG_PATH': pkgconfigpath, 'DESTDIR': destdir}))
- Factory.addStep(shell.ShellCommand(name='chmod +w', command=['chmod','-R','u+w', './'], env={'PATH':path, 'PKG_CONFIG_PATH': pkgconfigpath }))
- Builder = {'name': module+'_on_'+slave, 'slavename': slave, 'builddir': 'core/' + slave+'_for_'+module, 'factory': Factory, }
+ Factory.addStep(shell.ShellCommand(name='configure', command=['./autogen.sh','--prefix='+prefix,'--enable-debug=full','--enable-gtk-doc','--enable-xml2po','--enable-xsltproc'], env=envi))
+ Factory.addStep(shell.ShellCommand(name='make distcheck', command=['make','distcheck'],env=envi))
+ Factory.addStep(shell.ShellCommand(name='make', command=['make'],env=envi ))
+ Factory.addStep(shell.ShellCommand(name='make install', command=['make','install'],env=envi))
+ Factory.addStep(shell.ShellCommand(name='chmod +w', command=['chmod','-R','u+w', './'], env=envi))
+ Builder = {'name': 'core_'+module+'_'+slave, 'slavename': slave, 'builddir': 'core/' + slave+'_for_'+module, 'factory': Factory, }
c['builders'].append(Builder)
+
+
####### STATUS TARGETS
# 'status' is a list of Status Targets. The results of each build will be
@@ -167,7 +228,7 @@ c['status'].append(client.PBListener(9991))
# from buildbot HTML pages to your project's home page.
c['projectName'] = 'Xfce'
-c['projectURL'] = 'http://buildbot.xfce.org/experimental'
+c['projectURL'] = 'http://buildbot.xfce.org/core'
# the 'buildbotURL' string should point to the location where the buildbot's
# internal web server (usually the html.Waterfall page) is visible. This
@@ -175,7 +236,7 @@ c['projectURL'] = 'http://buildbot.xfce.org/experimental'
# with an externally-visible host name which the buildbot cannot figure out
# without some help.
-c['buildbotURL'] = 'http://buildbot.xfce.org/experimental'
+c['buildbotURL'] = 'http://buildbot.xfce.org/core'
More information about the Xfce4-commits
mailing list