Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
added bluebream, ztk1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Groszer committed Jun 30, 2010
1 parent 2df8603 commit 7916955
Showing 1 changed file with 157 additions and 2 deletions.
159 changes: 157 additions & 2 deletions master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,38 @@ class Test(shell.Test):
# Custom helper classes
######################################

######################################
# cleanup

def makeCleanfactory():

f = factory.BuildFactory()

f.addStep(shell.ShellCommand(
command=r'python c:\buildmaster\cleanfolder.py c:\temp',
haltOnFailure=True,
name="clean temp",
description="clean temp"))

f.treeStableTimer = 300
return f

def setupCleanupBuild(slow_lock):
c['builders'].append({
'name': 'cleanup',
'slavename': 'local',
'builddir': 'cleanup',
'factory': makeCleanfactory(),
'locks': [slow_lock],
})

c['schedulers'].append(Nightly(
"Nightly cleanup", ['cleanup'], hour=[01],
branch="trunk"))

# cleanup
######################################

######################################
# egg building

Expand Down Expand Up @@ -245,7 +277,7 @@ def setupEggBuild(slow_lock):
})

c['schedulers'].append(Nightly(
"Nightly egg build", ['wineggbuilder'], hour=[01],
"Nightly egg build", ['wineggbuilder'], hour=01, minute=10,
branch="trunk"))

# egg building
Expand Down Expand Up @@ -380,6 +412,69 @@ def setupZTK_dev_tests(slow_lock):
# ZTK tests
######################################

######################################
# ZTK 1.0 tests

def ztk_10_builder(name, slavename, platform, locks):
builddir = name.replace(' ', '_')
f = factory.BuildFactory()
f.addStep(SVN(
svnurl="svn://svn.zope.org/repos/main/zopetoolkit/trunk",
haltOnFailure=True,
mode="update"))

lc = LastChange()
lc.url_template = 'http://zope3.pov.lt/trac/log/zopetoolkit?rev=%s'
f.addStep(lc)

#f.addStep(shell.ShellCommand(
# command=["/usr/bin/virtualenv", "--distribute", "-p", python, "--no-site-packages", "sandbox"],
# haltOnFailure=True,
# name="virtualenv",
# description="virtualenv"))
f.addStep(shell.ShellCommand(
command=[platform.python, "bootstrap.py"],
haltOnFailure=True,
name="bootstrap",
description="bootstrap"))
f.addStep(shell.ShellCommand(
command="%s" % platform.buildout,
haltOnFailure=True,
name="buildout",
description="buildout",
timeout=3600))
f.addStep(Test(
command=[r"bin\test-ztk.exe", "--exit-with-status", "-1"],
haltOnFailure=False,
name="test ztk",
description="test ztk trunks",
timeout=3600))
f.addStep(Test(
command=[r"bin\test-zopeapp.exe", "--exit-with-status", "-1"],
haltOnFailure=False,
name="test zopeapp trunks",
description="test zopeapp",
timeout=3600))
return dict(name=name,
slavename=slavename,
builddir=builddir,
factory=f,
locks=locks)

def setupZTK_10_tests(slow_lock):
hour = 02
for pname in sorted(ZTK_DEV_PLATFORMS.keys()):
platform = ZTK_DEV_PLATFORMS[pname]
name = "ztk_10 %s" % platform.name
c['builders'].append(
ztk_10_builder(name, 'local', platform, [slow_lock]))

c['schedulers'].append(
Nightly( "%s_nightly" % name, [name], hour=hour))

# ZTK 1.0 tests
######################################

######################################
# zc.buildout

Expand All @@ -406,7 +501,7 @@ def zc_buildout_dev_builder(name, slavename, platform, locks):
name="bootstrap",
description="bootstrap"))
f.addStep(shell.ShellCommand(
command="%s" % platform.buildout,
command="cmd /c %s" % platform.buildout,
haltOnFailure=True,
name="buildout",
description="buildout",
Expand Down Expand Up @@ -436,6 +531,62 @@ def setup_zc_buildout_dev_tests(slow_lock):
# zc.buildout
######################################

######################################
# BlueBream

def bb_builder(name, slavename, platform, locks):
builddir = name.replace(' ', '_')
f = factory.BuildFactory()
f.addStep(SVN(
svnurl="svn://svn.zope.org/repos/main/bluebream/trunk",
haltOnFailure=True,
mode="copy"))

lc = LastChange()
lc.url_template = 'http://zope3.pov.lt/trac/log/bluebream?rev=%s'
f.addStep(lc)

#f.addStep(shell.ShellCommand(
# command=["/usr/bin/virtualenv", "--distribute", "-p", python, "--no-site-packages", "sandbox"],
# haltOnFailure=True,
# name="virtualenv",
# description="virtualenv"))

f.addStep(shell.ShellCommand(
command=[platform.python, r"bootstrap.py"],
haltOnFailure=True,
name="bootstrap",
description="bootstrap"))
f.addStep(shell.ShellCommand(
command="cmd /c %s" % platform.buildout,
haltOnFailure=True,
name="buildout",
description="buildout",
timeout=3600))
f.addStep(Test(
command=[r"bin\test.exe", "-1", "--exit-with-status"]))
return dict(name=name,
slavename=slavename,
builddir=builddir,
factory=f,
locks=locks)


def setup_BB_dev_tests(slow_lock):
hour = 03
for pname in sorted(PLATFORMS.keys()):
platform = PLATFORMS[pname]
name = "BlueBream_dev %s" % platform.name
c['builders'].append(
bb_builder(name, 'local', platform, [slow_lock]))

c['schedulers'].append(
Nightly( "%s_nightly" % name, [name], hour=hour))

# BlueBream
######################################


######################################
# ZODB

Expand Down Expand Up @@ -522,10 +673,14 @@ slow_lock = locks.SlaveLock("cpu", maxCount=1)
c['schedulers'] = []
c['builders'] = []

setupCleanupBuild(slow_lock)

setupEggBuild(slow_lock)
setupZTK_dev_tests(slow_lock)
setupZTK_10_tests(slow_lock)
setup_zc_buildout_dev_tests(slow_lock)
setup_ZODB_dev_tests(slow_lock)
setup_BB_dev_tests(slow_lock)

c['status'] = []

Expand Down

0 comments on commit 7916955

Please sign in to comment.