initial import
[vuplus_webkit] / Tools / BuildSlaveSupport / build.webkit.org-config / buildbot.tac
1
2 from twisted.application import service
3 from buildbot.master import BuildMaster
4
5 basedir = r'/buildbot/webkit'
6 configfile = r'master.cfg'
7 rotateLength = 1000000
8 maxRotatedFiles = None
9
10 application = service.Application('buildmaster')
11 try:
12   from twisted.python.logfile import LogFile
13   from twisted.python.log import ILogObserver, FileLogObserver
14   logfile = LogFile.fromFullPath("twistd.log", rotateLength=rotateLength,
15                                  maxRotatedFiles=maxRotatedFiles)
16   application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
17 except ImportError:
18   # probably not yet twisted 8.2.0 and beyond, can't set log yet
19   pass
20 BuildMaster(basedir, configfile).setServiceParent(application)
21