aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-26 04:36:23 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-03-26 04:36:23 +0200
commitc4618252f9442b4f6a9bf57ce01bb9d8649b67d7 (patch)
tree5b740b713737e99320ad2329b089141660fa78c5 /README
parent06aad8e62fd0b849996e187f1b2f4e88ed1de299 (diff)
downloadbuildbot_ext-c4618252f9442b4f6a9bf57ce01bb9d8649b67d7.tar.gz
buildbot_ext-c4618252f9442b4f6a9bf57ce01bb9d8649b67d7.tar.xz
buildbot_ext-c4618252f9442b4f6a9bf57ce01bb9d8649b67d7.zip
README: added some information and example code
Diffstat (limited to 'README')
-rw-r--r--README46
1 files changed, 46 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..f50e093
--- /dev/null
+++ b/README
@@ -0,0 +1,46 @@
+This repo contains some custom BuildStep classes for the use with
+(buildbot)[http://trac.buildbot.net/].
+
+I currently uses this build steps with buildbot-0.8.3_p1. You maybe
+have to change some parts, if you want to use it with other versions.
+
+# Doxygen
+
+The doxygen step should be used, if you are generating docs with
+(doxygen)[http://www.doxygen.org/]. It is mainly just cosmetic to
+display the step in the build details with a nice heading. To use the
+step you could use the following snippet, assuming that this
+repository is cloned next to your master.cfg:
+
+ #!python
+ from buildbot_ext.Doxygen import Doxygen
+
+ build = factory.BuildFactory()
+ # [...] you maybe already have added other steps
+ build.addStep(Doxygen(workdir="build/doc"))
+
+
+# CPPUnitTest
+
+ #!python
+ from buildbot_ext.CPPUnitTest import CPPUnitTest
+
+ build = factory.BuildFactory()
+ # [...] you maybe already have added other steps
+ build.addStep(CPPUnitTest(command=["make", "test"], workdir="build/test", logfiles={"debug": "debug.log"}))
+
+
+# GroupBuildStep
+
+ #!python
+ from buildbot_ext.GroupBuildStep import GroupBuildStep
+
+ build = factory.BuildFactory()
+ # [...] you maybe already have added other steps
+ build.addStep(GroupBuildStep(steps = [
+ FileUpload(slavesrc="somefile", masterdest=WithProperties('/%(buildername)s/%(buildnumber)s/')),
+ FileUpload(slavesrc="secondfile", masterdest=WithProperties('/%(buildername)s/%(buildnumber)s/')),
+ ], name = 'upload', description = 'uploading', descriptionDone = 'upload', links = [
+ {'title': somefile', 'href': WithProperties('/%(buildername)s/%(buildnumber)s/somefile')},
+ {'title': 'secondfile', 'href': WithProperties('/%(buildername)s/%(buildnumber)s/secondfile')}
+ ]))