Mercurial > octave-buildbot
view worker.tac @ 26:a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
* master.cfg: Cross-building from the current default or stable hg branch
requires creating a tarball which in turn requires building a version of Octave
that executes natively on the build system ("hg-octave-dist" target). Building
from the release tarball, some Octave Forge packages might still need a native
Octave as a build tool. So set the configure flags for the "build-octave"
package accordingly.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 13 Sep 2020 12:54:44 +0200 |
parents | bb8c4f263f94 |
children |
line wrap: on
line source
import os from buildbot_worker.bot import Worker from twisted.application import service basedir = '.' rotateLength = 10000000 maxRotatedFiles = 10 # if this is a relocatable tac file, get the directory containing the TAC if basedir == '.': import os.path basedir = os.path.abspath(os.path.dirname(__file__)) # note: this line is matched against to check that this is a buildbot worker # directory; do not edit it. application = service.Application('buildbot-worker') try: from twisted.python.logfile import LogFile from twisted.python.log import ILogObserver, FileLogObserver logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"), rotateLength=rotateLength, maxRotatedFiles=maxRotatedFiles) application.setComponent(ILogObserver, FileLogObserver(logfile).emit) except ImportError: # probably not yet twisted 8.2.0 and beyond, can't set log yet pass buildmaster_host = 'buildbot.octave.org' port = 9990 workername = 'your-worker-name' passwd = 'your-worker-password' keepalive = 600 maxdelay = 300 numcpus = None allow_shutdown = None maxretries = None s = Worker(buildmaster_host, port, workername, passwd, basedir, keepalive, maxdelay=maxdelay, numcpus=numcpus, allow_shutdown=allow_shutdown, maxRetries=maxretries) s.setServiceParent(application)