Add build master/slave configurations..

Originally committed to SVN as r3223.
This commit is contained in:
Amar Takhar 2009-07-23 19:38:19 +00:00
parent aa86cdb062
commit c11bf12504
22 changed files with 993 additions and 0 deletions

View File

@ -0,0 +1,63 @@
##
# ootermite - OpenOffice.org automated building/reporting system
# Copyright (C) ?
# Copyright (C) 2008 by Sun Microsystems, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
##
import os
from buildbot.steps.shell import ShellCommand
from buildbot.slave.registry import registerSlaveCommand
from buildbot.process.buildstep import LoggedRemoteCommand
from buildbot.steps.transfer import FileUpload
class OOCompile(ShellCommand):
def createSummary(self, log):
try:
logFileName = self.step_status.logs[0].getFilename()
command = "egrep 'warning: |: warning ' "+ logFileName
log = os.popen(command).read()
if log != "" :
self.addCompleteLog('warnings', log)
command = "egrep -B 10 'error: |: fatal error ' "+ logFileName
log = os.popen(command).read()
if log != "":
self.addCompleteLog('errors', log)
except:
print "cannot execute createSummary after OOCompile"
def __init__(self, **kwargs):
OOShellCommand.__init__(self, **kwargs) # always upcall!
def start(self):
ShellCommand.start(self)
# Overwritten method to allow HTML-Log-Files
def setupLogfiles(self, cmd, logfiles):
print "setupLogfiles"
for logname,remotefilename in logfiles.items():
if remotefilename.endswith(".html"):
# tell the BuildStepStatus to add a LogFile
newlog = self.addHTMLLog(logname)
# and tell the LoggedRemoteCommand to feed it
cmd.useLog(newlog, True)

View File

@ -0,0 +1,20 @@
from buildbot.steps import transfer
from buildbot.steps.shell import WithProperties
from buildbot.process.buildstep import BuildStep
class agi_upload(transfer.FileUpload):
def __init__(self, slavesrc, masterdest, workdir="build", maxsize=None,
blocksize=16*1024, mode=None, **buildstep_kwargs):
transfer.FileUpload.__init__(self, slavesrc, masterdest, workdir, maxsize, blocksize, mode, **buildstep_kwargs)
def start(self):
properties = self.build.getProperties()
masterdest = properties.render(self.masterdest)
self.addURL("dist-http", "http://ftp.aegisub.org/pub/" + masterdest)
self.addURL("dist-ftp", "ftp://ftp.aegisub.org/pub/" + masterdest)
return transfer.FileUpload.start(self)
def finish(self, result):
transfer.finished(self, result)

View File

@ -0,0 +1,11 @@
# Copy this to ./passwd.py and fill it in.
passwd = {
'mochi': '',
'kokoro': '',
'anpan': '',
'tako': '',
'nori': '',
'mokona': ''
}

View File

@ -0,0 +1,723 @@
###############
# General Setup
###############
c = BuildmasterConfig = {}
# Import our passwords
passwd_file = open('passwd.py')
exec passwd_file
passwd_file.close()
# What port to listen on, used for try attempts as well.
c['slavePortnum'] = 9899
c['projectName'] = "Aegisub"
c['projectURL'] = "http://devel.aegisub.org/"
c['buildbotURL'] = "http://buildbot.aegisub.org/"
# Used for accepting wchange notifications (svn-commit-hook) _and_ try attempts.
from buildbot.changes.pb import PBChangeSource
c['change_source'] = PBChangeSource()
####################################
# Check if a file is worth a rebuild
####################################
re_common = [
'^trunk/aegisub/.*\.c$',
'^trunk/aegisub/.*\.cpp$',
'^trunk/aegisub/.*\.h$',
'^trunk/aegisub/FFmpegSource2/.*',
'^trunk/aegisub/src/libauto3/.*',
'^trunk/aegisub/src/include/aegisub/.*',
'^trunk/aegisub/src/boost/.*',
'^trunk/aegisub/src/bitmaps/.*',
'^trunk/aegisub/src/config/.*',
'^trunk/aegisub/universalchardet/.*',
'^trunk/aegisub/src/gl/.*',
]
re_common_unix = [
'^trunk/aegisub/configure.in$',
'^trunk/aegisub/libass/.*',
'^trunk/aegisub/.*Makefile.am$',
'^trunk/aegisub/m4macros/.*',
'^trunk/aegisub/scripts/unix-.*',
'^trunk/aegisub/src/libresrc/.*',
'^trunk/aegisub/po/.*',
'^trunk/aegisub/acinclude.m4$',
'^trunk/aegisub/desktop/.*'
]
re_osx = [
'^trunk/aegisub/src/libosxutil/.*',
'^trunk/aegisub/packages/osx_.*',
'^trunk/aegisub/scripts/osx-.*'
]
re_windows = [
'^trunk/aegisub/build/.*',
'^trunk/contrib/csri/.*',
'^trunk/contrib/lua50/.*',
'^trunk/contrib/lua51/.*',
'^trunk/contrib/hunspell/.*',
'^trunk/aegisub/packages/win_installer/.*',
'^trunk/aegisub/tinderbox/windows/.*',
'^trunk/aegisub/src/msvc/.*'
]
import re, string
def check_changes(files, re_array):
re_compiled = re.compile(string.joinfields(re_array, "|"), re.I)
for changed_file in files:
if re.match(re_compiled, changed_file):
return True
return False
def interested_windows(change):
return check_changes(change.files, re_common + re_windows)
def interested_unix(change):
return check_changes(change.files, re_common + re_common_unix)
def interested_osx(change):
return check_changes(change.files, re_common + re_common_unix + re_osx)
#############
# BUILDSLAVES
#############
from buildbot.buildslave import BuildSlave
c['slaves'] = [
BuildSlave("mochi", passwd['mochi'], max_builds=1, properties={'os':'Debian', 'version':'5.0.1', 'osname':'Lenny'}),
BuildSlave("kokoro", passwd['kokoro'], max_builds=1, properties={'os':'OSX', 'version':'10.5.6', 'osname':'Leopard'}),
BuildSlave("anpan", passwd['anpan'], max_builds=1, properties={'os':'Windows', 'version':'SP2', 'osname':'Vista'}),
BuildSlave("tako", passwd['tako'], max_builds=1, properties={'os':'FreeBSD', 'version':'7.1', 'osname':'Stable'}),
BuildSlave("nori", passwd['nori'], max_builds=1, properties={'os':'Ubuntu', 'version':'9.04', 'osname':'Jaunty'}),
BuildSlave("mokona", passwd['mokona'], max_builds=1, properties={'os':'OSX', 'version': '10.4.11', 'osname':'Tiger'})
]
###########
# FACTORIES
###########
from buildbot.steps import source, shell
from buildbot.steps.shell import Configure, Compile, WithProperties
from buildbot.process import factory
from buildbot import locks
from agi_upload import agi_upload
from OOCompile import OOCompile
# General settings
source_unix = "http://svn.aegisub.org/trunk/aegisub/"
source_windows = "http://svn.aegisub.org/branches/windows"
stub = factory.BuildFactory()
##############
# Factory
# General Unix
##############
flinux = factory.BuildFactory()
flinux.addStep(source.SVN(mode="clobber", svnurl=source_unix))
flinux.addStep(shell.ShellCommand(
command=["./autogen.sh", "--skip-configure"],
name = "autogen",
description = ["autogening"],
descriptionDone = ["autogen"],
haltOnFailure=True
))
flinux.addStep(shell.ShellCommand(
command=["./configure",
WithProperties("--with-build-credit=BuildBot: %s (%s)", "buildername", "slavename"),
"--disable-check-wx-stc",
"--disable-check-wx-opengl"
],
env={
'CC': '/usr/lib/ccache/gcc',
'CXX': '/usr/lib/ccache/g++',
'CCACHE_PATH': '/usr/bin',
'CCACHE_DIR': '/home/verm/.ccache',
'LUA_CFLAGS': '-I/usr/include/lua5.1',
'LUA_LDFLAGS': '-llua5.1',
'LUA50_CFLAGS': '-I /usr/include/lua50',
'LUA50_LDFLAGS': '-llua50 -llualib50'
},
name = "configure",
description = ["configuring"],
descriptionDone = ["configure"],
logfiles={
'config.log': 'config.log',
'config.status': 'config.status'
},
haltOnFailure=True
))
flinux.addStep(OOCompile(
command=["make"],
env={
'CCACHE_PATH': '/usr/bin',
'CCACHE_DIR': '/home/verm/.ccache'
},
name = "build",
description = ["building"],
descriptionDone = ["build"],
haltOnFailure=True
))
#########
# Factory
# FreeBSD
#########
ffbsd = factory.BuildFactory()
ffbsd.addStep(source.SVN(mode="clobber", svnurl=source_unix))
ffbsd.addStep(shell.ShellCommand(
name = "autogen",
description = "autogening",
descriptionDone = "autogen",
haltOnFailure=True,
command=["./autogen.sh", "--skip-configure"],
env={
'ACLOCAL_FLAGS': '-I /usr/local/share/aclocal',
'ACLOCAL': 'aclocal-1.9',
'AUTOCONF': 'autoconf-2.62',
'AUTOHEADER': 'autoheader-2.62',
'AUTOMAKE': 'automake-1.9',
'LIBTOOLIZE': 'libtoolize'
}
))
ffbsd.addStep(shell.ShellCommand(
command=["/usr/local/bin/bash", "./configure",
"--prefix=/usr/local",
WithProperties("--with-build-credit=BuildBot: %s (%s)", "buildername", "slavename"),
"--with-wx-config=/home/verm/build/wx/lib/wx/config/gtk2-unicode-debug-2.9",
"--enable-maintainer-mode",
"--disable-check-wx-opengl",
"--disable-check-wx-stc"
],
env={
'CCACHE_PATH': '/usr/bin:/usr/local/bin',
'CCACHE_DIR': '/usr/home/verm/.ccache',
'CC': '/usr/local/libexec/ccache/gcc',
'CXX': '/usr/local/libexec/ccache/g++',
'CFLAGS': '-I/usr/local/include',
'CXXFLAGS': '-I/usr/local/include',
'LDFLAGS': '-L/usr/local/lib',
'LUA50_CFLAGS': '-I/usr/local/include/lua50',
'LUA50_LDFLAGS': '-L/usr/local/lib -llua-5.0 -llualib-5.0',
'LUA_CFLAGS': '-I/usr/local/include/lua51',
'LUA_LDFLAGS': '-L/usr/local/lib -llua-5.1'
},
name = "configure",
description = ["configuring"],
descriptionDone = ["configure"],
logfiles={
'config.log': 'config.log',
'config.status': 'config.status'
},
haltOnFailure=True
))
ffbsd.addStep(OOCompile(
command=["gmake"],
name = "build",
description = ["building"],
descriptionDone = ["build"],
env={
'CCACHE_PATH': '/usr/bin:/usr/local/bin',
'CCACHE_DIR': '/usr/home/verm/.ccache'
},
haltOnFailure=True
))
###############
# Factory
# Unix Snapshot
###############
funix_dist = factory.BuildFactory()
funix_dist.addStep(source.SVN(mode="clobber", svnurl=source_unix))
funix_dist.addStep(shell.ShellCommand(
name = "dist",
description = "disting",
descriptionDone = "dist",
command=[
"sh",
"-x",
"tinderbox/unix/dist.sh",
WithProperties("%s", "got_revision"),
WithProperties("%s", "slavename"),
],
haltOnFailure=True
))
funix_dist.addStep(agi_upload(
blocksize=640*1024,
slavesrc="dist.tar.bz2",
mode=0644,
masterdest=WithProperties("tinderbox/snapshot/aegisub-snap-r%s.tar.bz2", "got_revision")),
name = "upload",
description = ["uploading"],
descriptionDone = ["uploaded"],
haltOnFailure=False,
flunkOnFailure=False
)
############
# Factory
# OS X Intel
############
fosx = factory.BuildFactory()
fosx.addStep(source.SVN(mode="clobber", svnurl=source_unix))
fosx.addStep(shell.ShellCommand(
name = "autogen",
description = "autogening",
descriptionDone = "autogen",
haltOnFailure=True,
command=["./autogen.sh", "--skip-configure"],
env={
'ACLOCAL_FLAGS': '-I /Users/verm/prefix/share/aclocal -I /Developer/usr/share/aclocal -I /opt/local/share/aclocal',
'AUTOMAKE': '/Users/verm/prefix/bin/automake-1.9',
'ACLOCAL': '/Users/verm/prefix/bin/aclocal-1.9',
'AUTOCONF': '/Users/verm/prefix/bin/autoconf',
'AUTOHEADER': '/Users/verm/prefix/bin/autoheader',
'BIN_CONVERT': '/Users/verm/prefix/bin/convert'
}
))
fosx.addStep(shell.ShellCommand(
command=["./configure",
"--prefix=/Users/verm/prefix",
WithProperties("--with-build-credit=BuildBot: %s (%s)", "buildername", "slavename"),
"--with-apple-opengl-framework",
"--with-wx-config=/Users/verm/prefix/lib/wx/config/mac-unicode-debug-2.8",
"--enable-debug",
"--without-libass",
"--disable-check-wx-opengl",
"--disable-check-wx-stc"
],
env={
'CCACHE_PATH': '/usr/bin',
'CCACHE_DIR': '/Users/verm/.ccache',
'CC': '/opt/local/libexec/ccache/gcc',
'CXX': '/opt/local/libexec/ccache/g++',
'PKG_CONFIG': '/Users/verm/prefix/bin/pkg-config',
'PKG_CONFIG_PATH': '/Users/verm/prefix/lib/pkgconfig',
'CXXFLAGS': '-I/Users/verm/prefix/include',
'LDFLAGS': '-L/Users/verm/prefix/lib',
'LUA50_CFLAGS': '-I/Users/verm/prefix/include/lua50',
'LUA50_LDFLAGS': '-L/Users/verm/prefix/lib/lua50 -llua-5.0 -llualib-5.0',
'LUA_CFLAGS': '-I/Users/verm/prefix/include/lua51',
'LUA_LDFLAGS': '-L/Users/verm/prefix/lib/lua51 -llua',
'OPENAL_CFLAGS': '-framework OpenAL',
'OPENAL_LIBS': '-framework OpenAL',
'CFLAGS': '-I/Developer/SDKs/MacOSX10.5.sdk/usr/include',
'ICONV_LDFLAGS': '/usr/lib/libiconv.dylib',
'PERL_CFLAGS': '-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -arch i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include',
'PERL_LDFLAGS': '-arch i386 -L/usr/local/lib /System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lutil -lc',
'RUBY_CFLAGS': '-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -arch i386 -Os -pipe -fno-common'
},
name = "configure",
description = ["configuring"],
descriptionDone = ["configure"],
logfiles={
'config.log': 'config.log',
'config.status': 'config.status'
},
haltOnFailure=True
))
fosx.addStep(OOCompile(
command=["make"],
name = "build",
description = ["building"],
descriptionDone = ["build"],
env={
'CCACHE_PATH': '/usr/bin',
'CCACHE_DIR': '/Users/verm/.ccache'
},
haltOnFailure=True
))
fosx.addStep(shell.ShellCommand(
command=["make", "osx-tinderbox-bundle"],
env={
'T_BUNDLE': WithProperties("aegisub-%s-%s-%s-r%s", "buildername", "slavename", "buildnumber", "got_revision"),
},
name = "bundle",
description = ["bundling"],
descriptionDone = ["bundle"],
haltOnFailure=True
))
fosx.addStep(shell.ShellCommand(
command=["make", "osx-tinderbox-dmg"],
env={
'T_BUNDLE': WithProperties("aegisub-%s-%s-%s-r%s", "buildername", "slavename", "buildnumber", "got_revision"),
'T_DMG': WithProperties("aegisub-%s-%s-%s-r%s", "buildername", "slavename", "buildnumber", "got_revision"),
},
name = "dmg",
description = ["dmging"],
descriptionDone = ["dmg"],
haltOnFailure=True
))
fosx.addStep(agi_upload(
blocksize=640*1024,
slavesrc="bundle.dmg",
mode=0644,
masterdest=WithProperties("tinderbox/osx/aegisub-%s-%s-%s-r%s.dmg", "buildername", "slavename", "buildnumber", "got_revision")),
name = "upload",
description = ["uploading"],
descriptionDone = ["uploaded"],
haltOnFailure=False,
flunkOnFailure=False
)
##########
# Factory
# OS X PPC
##########
fosx_ppc = factory.BuildFactory()
fosx_ppc.addStep(source.SVN(mode="clobber", svnurl=source_unix))
fosx_ppc.addStep(shell.ShellCommand(
name = "autogen",
description = "autogening",
descriptionDone = "autogen",
haltOnFailure=True,
command=["./autogen.sh", "--skip-configure"],
env={
'ACLOCAL_FLAGS': '-I /Users/verm/prefix/share/aclocal',
'AUTOMAKE': '/Users/verm/prefix/bin/automake-1.9',
'ACLOCAL': '/Users/verm/prefix/bin/aclocal-1.9',
'AUTOCONF': '/Users/verm/prefix/bin/autoconf-2.61',
'AUTOHEADER': '/Users/verm/prefix/bin/autoheader-2.61',
'BIN_CONVERT': '/Users/verm/prefix/bin/convert'
}
))
fosx_ppc.addStep(shell.ShellCommand(
command=["./configure",
"--prefix=/Users/verm/prefix",
WithProperties("--with-build-credit=BuildBot: %s (%s)", "buildername", "slavename"),
"--with-apple-opengl-framework",
"--with-wx-config=/Users/verm/prefix/lib/wx/config/mac-unicode-debug-2.8",
"--enable-debug"
"--prefix=/Users/verm/i",
"--disable-check-wx-opengl",
"--disable-check-wx-stc",
],
env={
'CCACHE_PATH': '/usr/bin',
'CCACHE_DIR': '/Users/verm/.ccache',
'CC': '/opt/local/libexec/ccache/gcc',
'CXX': '/opt/local/libexec/ccache/g++',
'PKG_CONFIG': '/Users/verm/prefix/bin/pkg-config',
'PKG_CONFIG_PATH': '/Users/verm/prefix/lib/pkgconfig',
'CXXFLAGS': '-I/Users/verm/prefix/include',
'LDFLAGS': '-L/Users/verm/prefix/lib',
'LUA50_CFLAGS': '-I/Users/verm/prefix/include/lua50',
'LUA50_LDFLAGS': '-L/Users/verm/prefix/lib/lua50 -llua-5.0 -llualib-5.0',
'LUA_CFLAGS': '-I/Users/verm/prefix/include/lua51',
'LUA_LDFLAGS': '-L/Users/verm/prefix/lib/lua51 -llua',
'OPENAL_CFLAGS': '-framework OpenAL',
'OPENAL_LIBS': '-framework OpenAL',
'CFLAGS': '-I/Developer/SDKs/MacOSX10.5.sdk/usr/include',
'ICONV_LDFLAGS': '/usr/lib/libiconv.dylib',
'PERL_CFLAGS': '-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
'PERL_LDFLAGS': '-L/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lc',
'RUBY_CFLAGS': '-I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/usr/lib/ruby/1.8/universal-darwin8.0 -g -Os -pipe -fno-common'
},
name = "configure",
description = ["configuring"],
descriptionDone = ["configure"],
logfiles={
'config.log': 'config.log',
'config.status': 'config.status'
},
haltOnFailure=True
))
fosx_ppc.addStep(OOCompile(
command=["make"],
name = "build",
env={
'CCACHE_PATH': '/usr/bin',
'CCACHE_DIR': '/Users/verm/.ccache'
},
description = ["building"],
descriptionDone = ["build"],
haltOnFailure=True
))
fosx_ppc.addStep(shell.ShellCommand(
command=["make", "osx-tinderbox-bundle"],
env={
'T_BUNDLE': WithProperties("aegisub-%s-%s-%s-r%s", "buildername", "slavename", "buildnumber", "got_revision"),
},
name = "bundle",
description = ["bundling"],
descriptionDone = ["bundle"],
haltOnFailure=True
))
fosx_ppc.addStep(shell.ShellCommand(
command=["make", "osx-tinderbox-dmg"],
env={
'T_BUNDLE': WithProperties("aegisub-%s-%s-%s-r%s", "buildername", "slavename", "buildnumber", "got_revision"),
'T_DMG': WithProperties("aegisub-%s-%s-%s-r%s", "buildername", "slavename", "buildnumber", "got_revision"),
},
name = "dmg",
description = ["dmging"],
descriptionDone = ["dmg"],
haltOnFailure=True
))
fosx_ppc.addStep(agi_upload(
blocksize=640*1024,
slavesrc="bundle.dmg",
mode=0644,
masterdest=WithProperties("tinderbox/osx/aegisub-%s-%s-%s-r%s.dmg", "buildername", "slavename", "buildnumber", "got_revision")),
name = "upload",
description = ["uploading"],
descriptionDone = ["uploaded"],
haltOnFailure=False,
flunkOnFailure=False
)
#########
# Factory
# Windows
#########
fwin = factory.BuildFactory()
fwin.addStep(source.SVN(mode="clobber", svnurl=source_windows))
fwin.addStep(shell.ShellCommand(
command=["copy aegisub\\tinderbox\\windows\\config_windows.h aegisub\\src\\config\\config_windows.h"],
name = "configure",
description = ["configuring"],
descriptionDone = ["configure"],
haltOnFailure=True
))
fwin.addStep(OOCompile(
command=["aegisub\\tinderbox\\windows\\anpan.bat", "Release", "Win32"],
name = "build",
description = ["building"],
descriptionDone = ["build"],
haltOnFailure=True
))
fwin.addStep(shell.ShellCommand(
command=[WithProperties("aegisub\\tinderbox\\windows\\dist.bat %s %s %s %s", "buildername", "slavename", "buildnumber", "got_revision")],
name = "dist",
description = ["dist"],
descriptionDone = ["dist"],
haltOnFailure=True
))
fwin.addStep(agi_upload(
blocksize=640*1024,
slavesrc="dist.7z",
mode=0644,
masterdest=WithProperties("tinderbox/windows/aegisub-%s-%s-%s-r%s.7z", "buildername", "slavename", "buildnumber", "got_revision")),
name = "upload",
description = ["uploading"],
descriptionDone = ["uploaded"],
haltOnFailure=False,
flunkOnFailure=False
)
fwin64 = factory.BuildFactory()
fwin64.addStep(source.SVN(mode="clobber", svnurl=source_windows))
fwin64.addStep(shell.ShellCommand(
command=["copy aegisub\\tinderbox\\windows\\config_windows.h aegisub\\src\\config\\config_windows.h"],
name = "configure",
description = ["configuring"],
descriptionDone = ["configure"],
haltOnFailure=True
))
fwin64.addStep(OOCompile(
name = "build",
command=["aegisub\\tinderbox\\windows\\anpan.bat", "Release", "x64"],
description = ["building"],
descriptionDone = ["build"],
haltOnFailure=True
))
fwin64.addStep(shell.ShellCommand(
command=[WithProperties("aegisub\\tinderbox\\windows\\dist.bat %s %s %s %s", "buildername", "slavename", "buildnumber", "got_revision")],
name = "dist",
description = ["dist"],
descriptionDone = ["dist"],
haltOnFailure=True
))
fwin64.addStep(agi_upload(
blocksize=640*1024,
slavesrc="dist.7z",
mode=0644,
masterdest=WithProperties("tinderbox/windows/aegisub-%s-%s-%s-r%s.7z", "buildername", "slavename", "buildnumber", "got_revision")),
name = "upload",
description = ["uploading"],
descriptionDone = ["uploaded"],
haltOnFailure=False,
flunkOnFailure=False
)
##########
# BUILDERS
##########
slave_win = ["anpan"]
slave_freebsd = ["tako"]
slave_debian = ["mochi"]
slave_ubuntu = ["nori"]
slave_osx = ["kokoro"]
slave_osx_ppc = ["mokona"]
#Ubuntux8632 = { 'name': "Ubuntu-x86_32", 'slavenames': slave_ubuntu, 'builddir': "full_Ubuntu-x86_32", 'factory': flinux }
Windowsx8632 = { 'name': "Windows-x86_32", 'slavenames': slave_win, 'builddir': "full_Windows-x86_32", 'factory': fwin }
Windowsx8664 = { 'name': "Windows-x86_64", 'slavenames': slave_win, 'builddir': "full_Windows-x86_64", 'factory': fwin64 }
DarwinPPC = { 'name': "Darwin-PPC", 'slavenames': slave_osx_ppc, 'builddir': "full_Darwin-PPC", 'factory': fosx_ppc }
Darwinx8664 = { 'name': "Darwin-x86_64", 'slavenames': slave_osx, 'builddir': "full_Darwin-x86_64", 'factory': fosx }
#FreeBSDx8632 = { 'name': "FreeBSD-x86_32", 'slavenames': slave_freebsd, 'builddir': "full_FreeBSD-x86_32", 'factory': ffbsd }
FreeBSDx8664 = { 'name': "FreeBSD-x86_64", 'slavenames': slave_freebsd, 'builddir': "full_FreeBSD-x86_64", 'factory': ffbsd }
Ubuntux8664 = { 'name': "Ubuntu-x86_64", 'slavenames': slave_ubuntu, 'builddir': "full_Ubuntu-x86_64", 'factory': flinux }
Debianx8632 = { 'name': "Debian-x86_32", 'slavenames': slave_debian, 'builddir': "full_Debian-x86_32", 'factory': flinux }
#Debianx8664 = { 'name': "Debian-x86_64", 'slavenames': slave_debian, 'builddir': "full_Debian-x86_64", 'factory': flinux }
UNIXDist = { 'name': "UNIX Dist", 'slavenames': slave_debian + slave_ubuntu + slave_freebsd, 'builddir': "UNIX_Dist", 'factory': funix_dist }
#Ubuntux8632,
c['builders'] = [
Windowsx8632,
Windowsx8664,
DarwinPPC,
Darwinx8664,
FreeBSDx8664,
Ubuntux8664,
Debianx8632,
UNIXDist
]
#FreeBSDx8632,
#Debianx8664
#"Ubuntu-x86_32",
builder_name_windows = [
"Windows-x86_32",
"Windows-x86_64"
]
builder_name_unix = [
"FreeBSD-x86_64",
"Ubuntu-x86_64",
"Debian-x86_32"
]
builder_name_darwin = [
"Darwin-PPC",
"Darwin-x86_64"
]
#"FreeBSD-x86_32",
#"Debian-x86_64"
############
# SCHEDULERS
############
from buildbot.scheduler import Scheduler
from buildbot.scheduler import Dependent
full_windows = Scheduler(name="full_windows",
branch=None,
treeStableTimer=901,
builderNames=builder_name_windows,
fileIsImportant=interested_windows)
full_unix = Scheduler(name="full_unix",
branch=None,
treeStableTimer=901,
builderNames=builder_name_unix,
fileIsImportant=interested_unix)
full_darwin = Scheduler(name="full_darwin",
branch=None,
treeStableTimer=901,
builderNames=builder_name_darwin,
fileIsImportant=interested_osx)
unix_dist = Dependent("unix_dist",
full_unix,
builderNames=["UNIX Dist"])
from buildbot.scheduler import Try_Jobdir
try_job = Try_Jobdir("try", builder_name_windows + builder_name_unix + builder_name_darwin, jobdir="jobdir")
c['schedulers'] = [full_windows, full_unix, full_darwin, unix_dist]
from buildbot import scheduler
################
# STATUS TARGETS
################
c['status'] = []
# Website http://builder.aegisub.org/
from buildbot.status import html
c['status'].append(html.WebStatus(http_port="tcp:8001:interface=127.0.0.1", allowForce=1))
# Send out status emails.
from buildbot.status import mail
c['status'].append(mail.MailNotifier(fromaddr="tinderbox@aegisub.org",
extraRecipients=["aegisub@darkbeer.org"],
sendToInterestedUsers=False))
# IRC!
from buildbot.status import words
c['status'].append(words.IRC(
host="irc.rizon.net",
nick="aegibuild",
channels=["#aegisub"],
notify_events={
'exception': 1,
'successToFailure': 1,
'failureToSuccess': 1
}
))
# Realtime client
# from buildbot.status import client
# c['status'].append(client.PBListener(9988))

View File

@ -0,0 +1,64 @@
* {
font-family: Garamond, Helvetica, Verdana, Cursor;
font-size: 12px;
}
a:link,a:visited,a:active {
color: #000000;
}
a:hover {
background-color: #EEEEEE;
}
.table {
border-spacing: 2px;
}
td.Event, td.Activity, td.Change, td.Time, td.Builder {
color: #333333;
border: 1px solid #666666;
background-color: #CCCCCC;
}
/* LastBuild, BuildStep states */
.start {
color: #000000;
border: 1px solid #1111ff;
background-color: #66bbff;
}
.success {
color: #000000;
border: 1px solid #2f8f0f;
background-color: #8fdf5f;
}
.failure {
color: #FFFFFF;
border: 1px solid #8f3636;
background-color: #ff0000;
}
.warnings {
color: #FFFFFF;
border: 1px solid #fc901f;
background-color: #ffc343;
}
.skipped {
color: #000000;
border: 1px solid #777777;
background-color: #aaaaaa;
}
.exception, td.offline {
color: #FFFFFF;
border: 1px solid #8000c0;
background-color: #e0b0ff;
}
.running, td.building {
color: #666666;
border: 1px solid #bfbf00;
background-color: #fffc6c;
}

View File

@ -0,0 +1,32 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<title>Welcome to the Buildbot</title>
</head>
<body>
<h1>Welcome to the Buildbot!</h1>
<ul>
<li>the <a href="waterfall">Waterfall Display</a> will give you a
time-oriented summary of recent buildbot activity.</li>
<li>the <a href="grid">Grid Display</a> will give you a
developer-oriented summary of recent buildbot activity.</li>
<li>The <a href="one_box_per_builder">Latest Build</a> for each builder is
here.</li>
<li><a href="one_line_per_build">Recent Builds</a> are summarized here, one
per line.</li>
<li><a href="buildslaves">Buildslave</a> information</li>
<li><a href="changes">ChangeSource</a> information.</li>
<br />
<li><a href="about">About this Buildbot</a></li>
</ul>
</body> </html>

View File

@ -0,0 +1,9 @@
User-agent: *
Disallow: /waterfall
Disallow: /builders
Disallow: /changes
Disallow: /buildslaves
Disallow: /schedulers
Disallow: /one_line_per_build
Disallow: /one_box_per_builder
Disallow: /xmlrpc

View File

@ -0,0 +1 @@
Amar Takhar (verm)

View File

@ -0,0 +1,4 @@
Windows Vista
CPU: x86_64
Path: SP2
Hosted by: Jernej Simončič (ender)

View File

@ -0,0 +1 @@
env -i Path="%Path%" SystemDrive="%SystemDrive%" PATHEXT="%PATHEXT%" ComSpec="%ComSpec%" c:\python25\python c:\python25\scripts\buildbot start .

View File

@ -0,0 +1 @@
Amar Takhar (verm)

View File

@ -0,0 +1,4 @@
Debian Lenny 5.0.1
CPU: i686
Linux kernel: 2.6.26-2-686
Hosted by: Jernej Simončič (ender)

View File

@ -0,0 +1,3 @@
#!/bin/sh
cd /home/verm/buildslave
exec env -i PATH="$PATH" buildbot start .

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>StandardOutPath</key>
<string>twistd.log</string>
<key>StandardErrorPath</key>
<string>twistd-err.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/Users/verm/python/bin:/Users/verm/prefix/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Developer/Tools</string>
<key>PYTHONPATH</key>
<string>/Users/verm/python/lib/python2.5/site-packages</string>
</dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>net.buildbot.buildbot.slave.mokona</string>
<key>ProgramArguments</key>
<array>
<string>/Users/verm/python/bin/twistd</string>
<string>-no</string>
<string>-y</string>
<string>./buildbot.tac</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>verm</string>
<key>WorkingDirectory</key>
<string>/Users/verm/buildslave</string>
</dict>
</plist>

View File

@ -0,0 +1 @@
Amar Takhar (verm)

View File

@ -0,0 +1,4 @@
OSX Tiger 10.4.11
CPU: powerpc
XNU kerne: xnu-792.24.17~1/RELEASE_PPC
Hosted by: Niels Martin Hansen (jfs)

View File

@ -0,0 +1 @@
Amar Takhar (verm)

View File

@ -0,0 +1,4 @@
Ubuntu Jaunty 9.0.4
CPU: x86_64
Linux kernel: 2.6.28-11-generic
Hosted by: Fruit

View File

@ -0,0 +1,3 @@
#!/bin/sh
cd /home/verm/buildslave
exec env -i PATH="$PATH" buildbot start .

View File

@ -0,0 +1 @@
Amar Takhar (verm)

View File

@ -0,0 +1,3 @@
OSX Leopard 10.5.6
CPU: amd64
Hosted by: Amar Takhar

View File

@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/home/verm/buildslave
exec env -i PATH="$PATH" buildbot start .