~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Tools/BuildSlaveSupport/build.webkit.org-config/buildbot.tac

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
from twisted.application import service
 
3
from buildbot.master import BuildMaster
 
4
 
 
5
basedir = r'/var/buildbot'
 
6
configfile = r'master.cfg'
 
7
rotateLength = 10000000
 
8
maxRotatedFiles = 100
 
9
umask = 022
 
10
 
 
11
application = service.Application('buildmaster')
 
12
try:
 
13
  from twisted.python.logfile import LogFile
 
14
  from twisted.python.log import ILogObserver, FileLogObserver
 
15
  logfile = LogFile.fromFullPath("twistd.log", rotateLength=rotateLength,
 
16
                                 maxRotatedFiles=maxRotatedFiles)
 
17
  application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
 
18
except ImportError:
 
19
  # probably not yet twisted 8.2.0 and beyond, can't set log yet
 
20
  pass
 
21
BuildMaster(basedir, configfile).setServiceParent(application)
 
22