]>
Commit | Line | Data |
---|---|---|
74e67345 MW |
1 | <?xml version="1.0" encoding="utf-8"?> |
2 | ||
3 | <!-- | |
4 | Name: example.xml | |
5 | Purpose: Buildbot example configuration. | |
6 | Author: Mike Wetherell | |
7 | RCS-ID: $Id$ | |
8 | Copyright: (c) 2007 Mike Wetherell | |
9 | Licence: wxWidgets licence | |
10 | ||
11 | There is one xml file such as this per build slave containing a <build> | |
12 | element for each build the slave runs. Each <build> corresponds to a | |
13 | column in the waterfall display. | |
14 | --> | |
15 | ||
16 | <bot xmlns:xi="http://www.w3.org/2001/XInclude" | |
17 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
18 | xmlns:exsl="http://exslt.org/common" | |
19 | xsl:version="1.0"> | |
20 | ||
21 | <!-- | |
22 | Common declarations. | |
23 | --> | |
24 | <xi:include href="include.xml" xpointer="xpointer(*/*)"/> | |
25 | ||
26 | <!-- | |
27 | Notes: | |
28 | ||
29 | The elements marked 'Unique' below must be unique across all builds on | |
30 | all slaves. | |
31 | ||
32 | If a build is currently failing because of something other than a bug in | |
33 | wxWidgets, e.g. out of space or missing libs, then comment it out, or | |
34 | add '** Ignore **' to the beginning of the <name>, so that wxWidgets | |
35 | developers know not to waste time investigating. | |
36 | --> | |
37 | <build> | |
38 | <!-- | |
39 | Unique. Appears as the title in the waterfall display. | |
40 | --> | |
41 | <name>Linux x86_64 wxGTK Stable</name> | |
42 | ||
43 | <!-- | |
44 | Unique. The name of a directory for the bulid. On most slaves must | |
45 | be a single name, on the Testdrive builds it must be a path such as | |
46 | '/tmp/wx/td_gtk'. | |
47 | --> | |
48 | <builddir>example_gtk</builddir> | |
49 | ||
50 | <!-- | |
51 | The name of a scheduler that will trigger this build. The schedulers | |
52 | are usually defined in common.xml, look in there to see if there is | |
53 | already one you can use, and add a new one if not. | |
54 | ||
55 | The 'trunk_quick' and 'stable_quick' schedulers currently in | |
56 | common.xml trigger a build after every source change on the trunk | |
57 | and stable branches respectively. There are also daily and weekly | |
58 | schedulers 'daily_6am', 'monday_6am', 'tuesday_6am' and so on. | |
59 | ||
60 | The <scheduler> element can be omitted, in which case the build | |
61 | never runs automatically, but can still be triggered manually. | |
62 | Or you can use several, e.g. you could use two weekly schedulers | |
63 | that fire on different days to have a build run twice a week. | |
64 | --> | |
65 | <scheduler>trunk_quick</scheduler> | |
66 | ||
67 | <!-- | |
68 | The meaning of <sandbox> is specific to the build slave. There | |
69 | should be a comment in the slave's configuration file saying if they | |
70 | are allowed or required. On the testdrive it specifies the remote | |
71 | machine that will run the bulid. | |
72 | --> | |
73 | <sandbox>debug</sandbox> | |
74 | ||
75 | <!-- | |
76 | You can override the make command the compile steps will use using | |
77 | this <make> element, if omitted defaults to 'make'. For Windows | |
78 | builds this becomes the place to put build options as there is no | |
79 | configure step. | |
80 | --> | |
81 | <make>nmake -f makefile.vc SHARED=1 CPPUNIT_CFLAGS=-I\cppunit\include CPPUNIT_LIBS=cppunit.lib</make> | |
82 | ||
83 | <!-- | |
84 | The build steps. | |
85 | --> | |
86 | <steps> | |
87 | <!-- | |
88 | Check out the sources, by default the trunk branch. Or for a | |
89 | particular branch or tag, e.g.: | |
90 | <checkout branch="{$STABLE_BRANCH}"/> | |
91 | <checkout branch="branches/WX_2_6_BRANCH"/> | |
92 | --> | |
93 | <checkout/> | |
94 | ||
95 | <!-- | |
96 | A <shellcommand> build step can be used anywhere you need to run | |
97 | arbitrary commands not covered by the standard build steps. | |
98 | <haltOnFailure/> specifies that the whole build fails if this | |
99 | step fails, without it it continues with the next step anyway. | |
100 | --> | |
101 | <shellcommand> | |
102 | <description>setting up</description> | |
103 | <descriptionDone>set up</descriptionDone> | |
104 | <haltOnFailure/> | |
105 | <command>setup-script</command> | |
106 | </shellcommand> | |
107 | ||
108 | <!-- | |
109 | Configure. Options and environment variables can be added with | |
110 | the 'options' attribute: | |
111 | <configure options="-with-foobar CC=cc CXX=CC"/> | |
112 | Omitted for Windows builds. | |
113 | --> | |
114 | <configure/> | |
115 | ||
116 | <!-- | |
117 | Compile the library. For Windows builds use <compile-msw/> | |
118 | instead which runs the make command in the 'build\msw' | |
119 | subdirectory instead of the wxWidgets root. | |
120 | --> | |
121 | <compile/> | |
122 | ||
123 | <!-- | |
124 | Compile subdirectories. There is also <compile-contrib/> for | |
125 | branches that have contrib. | |
126 | --> | |
127 | <compile-samples/> | |
128 | <compile-utils/> | |
129 | <compile-tests/> | |
130 | ||
131 | <!-- | |
132 | Run the test suites. For Windows builds the command to run the | |
133 | test suite must be overridden, e.g.: | |
134 | <run-tests> | |
135 | <command>PATH=..\lib\vc_dll;%PATH%</command> | |
136 | <command>cd tests</command> | |
137 | <command>vc_msw\test</command> | |
138 | <command>vc_msw\test_gui</command> | |
139 | </run-tests> | |
140 | --> | |
141 | <run-tests/> | |
142 | </steps> | |
143 | </build> | |
144 | ||
145 | </bot> |