Changeset 656

Show
Ignore:
Timestamp:
06/25/08 19:35:41 (5 months ago)
Author:
dustin@zmanda.com
Message:

#305:stepinstances.diff
Patch by Albert Hofkamp to use step instances universally in the
documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • docs/buildbot.texinfo

    r651 r656  
    41484148from buildbot.process.properties import WithProperties 
    41494149 
    4150 f.addStep(ShellCommand, 
     4150f.addStep(ShellCommand( 
    41514151          command=["tar", "czf", 
    41524152                   WithProperties("build-%s.tar.gz", "revision"), 
    4153                    "source"]) 
     4153                   "source"])) 
    41544154@end example 
    41554155 
     
    41694169 
    41704170@example 
    4171 f.addStep(ShellCommand, 
     4171f.addStep(ShellCommand( 
    41724172          command=["tar", "czf", 
    41734173                   WithProperties("build-%(revision)s.tar.gz"), 
    4174                    "source"]) 
     4174                   "source"])) 
    41754175@end example 
    41764176 
     
    48334833 
    48344834@example 
    4835 f.addStep(ShellCommand, command=["make", "test"], 
    4836           env=@{'LANG': 'fr_FR'@}
     4835f.addStep(ShellCommand(command=["make", "test"], 
     4836                       env=@{'LANG': 'fr_FR'@})
    48374837@end example 
    48384838 
     
    48474847 
    48484848@example 
    4849 f.addStep(ShellCommand, command=["make", "test"], 
    4850           env=@{'PYTHONPATH': ["/usr/local/lib/python2.3", 
    4851                               "/home/buildbot/lib/python"] @}) 
     4849f.addStep(ShellCommand( 
     4850              command=["make", "test"], 
     4851              env=@{'PYTHONPATH': ["/usr/local/lib/python2.3", 
     4852                                   "/home/buildbot/lib/python"] @})) 
    48524853@end example 
    48534854 
     
    48794880 
    48804881@example 
    4881 f.addStep(ShellCommand, command=["make", "test"], 
    4882           logfiles=@{"triallog": "_trial_temp/test.log"@}) 
     4882f.addStep(ShellCommand( 
     4883              command=["make", "test"], 
     4884              logfiles=@{"triallog": "_trial_temp/test.log"@})) 
    48834885@end example 
    48844886 
     
    49084910 
    49094911@example 
    4910 f.addStep(ShellCommand, command=["make", "test"], 
    4911           description=["testing"], 
    4912           descriptionDone=["tests"]
     4912f.addStep(ShellCommand(command=["make", "test"], 
     4913                       description=["testing"], 
     4914                       descriptionDone=["tests"])
    49134915@end example 
    49144916 
     
    50925094 
    50935095... 
    5094 f.addStep(BuildEPYDoc, command=["epydoc", "-o", "apiref", "source/mypkg"]
     5096f.addStep(BuildEPYDoc(command=["epydoc", "-o", "apiref", "source/mypkg"])
    50955097@end example 
    50965098 
     
    51195121 
    51205122... 
    5121 f.addStep(PyFlakes, command=["pyflakes", "src"]
     5123f.addStep(PyFlakes(command=["pyflakes", "src"])
    51225124@end example 
    51235125 
     
    51515153from buildbot.steps.transfer import FileUpload 
    51525154 
    5153 f.addStep(ShellCommand, command=["make", "docs"]) 
    5154 f.addStep(FileUpload, 
    5155           slavesrc="docs/reference.html", 
    5156           masterdest="~/public_html/ref.html") 
     5155f.addStep(ShellCommand(command=["make", "docs"])) 
     5156f.addStep(FileUpload(slavesrc="docs/reference.html", 
     5157                     masterdest="~/public_html/ref.html")) 
    51575158@end example 
    51585159 
     
    51745175from buildbot.steps.transfer import FileUpload 
    51755176 
    5176 f.addStep(FileDownload 
    5177           mastersrc="~/todays_build_config.txt", 
    5178           slavedest="build_config.txt") 
    5179 f.addStep(ShellCommand, command=["make", "config"]) 
     5177f.addStep(FileDownload(mastersrc="~/todays_build_config.txt", 
     5178                       slavedest="build_config.txt")) 
     5179f.addStep(ShellCommand(command=["make", "config"])) 
    51805180@end example 
    51815181 
     
    52205220@example 
    52215221from buildbot.steps.trigger import Trigger 
    5222 f.addStep(Trigger, schedulerNames=['build-prep'], 
    5223                   waitForFinish=True, 
    5224                   updateSourceStamp=True
     5222f.addStep(Trigger(schedulerNames=['build-prep'], 
     5223                  waitForFinish=True, 
     5224                  updateSourceStamp=True)
    52255225@end example 
    52265226