"Fossies" - the Fresh Open Source Software Archive

Member "buildbot-2.3.1/docs/examples/hello.cfg" (23 May 2019, 2035 Bytes) of package /linux/misc/buildbot-2.3.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- python -*-
    2 # ex: set syntax=python:
    3 
    4 from buildbot.plugins import *
    5 
    6 BuildmasterConfig = c = {}
    7 
    8 c['slaves'] = [buildslave.BuildSlave("bot1", "sekrit")]
    9 
   10 c['change_source'] = changes.PBChangeSource(prefix="trunk")
   11 c['builders'] = []
   12 
   13 if True:
   14     f = util.BuildFactory()
   15     f.addStep(steps.CVS(cvsroot="/usr/home/warner/stuff/Projects/BuildBot/demo/Repository",
   16                         cvsmodule="hello",
   17                         mode="clobber",
   18                         checkoutDelay=6,
   19                         alwaysUseLatest=True))
   20     f.addStep(steps.Configure())
   21     f.addStep(steps.Compile())
   22     f.addStep(steps.Test(command=["make", "check"]))
   23     b1 = {
   24         "name": "cvs-hello",
   25         "slavename": "bot1",
   26         "builddir": "cvs-hello",
   27         "factory": f
   28     }
   29     c['builders'].append(b1)
   30 
   31 if True:
   32     svnrep="file:///usr/home/warner/stuff/Projects/BuildBot/demo/SVN-Repository"
   33     f = util.BuildFactory()
   34     f.addStep(steps.SVN(repourl=svnrep+"/hello", mode="update"))
   35     f.addStep(steps.Configure())
   36     f.addStep(steps.Compile()),
   37     f.addStep(steps.Test(command=["make", "check"]))
   38     b1 = {
   39         "name": "svn-hello",
   40         "slavename": "bot1",
   41         "builddir": "svn-hello",
   42         "factory": f
   43     }
   44     c['builders'].append(b1)
   45 
   46 if True:
   47     f = util.BuildFactory()
   48     f.addStep(steps.Darcs(repourl="http://localhost/~warner/hello-darcs",
   49                           mode="copy"))
   50     f.addStep(steps.Configure(command=["/bin/sh", "./configure"]))
   51     f.addStep(steps.Compile())
   52     f.addStep(steps.Test(command=["make", "check"]))
   53     b1 = {
   54         "name": "darcs-hello",
   55         "slavename": "bot1",
   56         "builddir": "darcs-hello",
   57         "factory": f
   58     }
   59     c['builders'].append(b1)
   60 
   61 c['title'] = "Hello"
   62 c['titleURL'] = "http://www.hello.example.com/"
   63 c['buildbotURL'] = "http://localhost:8080"
   64 
   65 c['slavePortnum'] = 8007
   66 c['manhole'] = util.PasswordManhole(9900, "username", "password", ssh_hostkey_dir="/data/ssh_host_keys/")
   67 
   68 c['www'] = {
   69     'port': 8080
   70 }
   71 
   72 # vim:ft=python