Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 177 lines (159 sloc) 7.788 kb
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
1 <?xml version="1.0" encoding="UTF-8"?>
788e33f @manuelpichler - BSD License comments added.
manuelpichler authored
2 <!--****************************************************************************
3 * This file is part of phpUnderControl.
4 *
f6ab6b0 @manuelpichler - email address changed.
manuelpichler authored
5 * Copyright (c) 2007-2008, Manuel Pichler <mapi@phpundercontrol.org>.
788e33f @manuelpichler - BSD License comments added.
manuelpichler authored
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 *
15 * * Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in
17 * the documentation and/or other materials provided with the
18 * distribution.
19 *
20 * * Neither the name of Manuel Pichler nor the names of his
21 * contributors may be used to endorse or promote products derived
22 * from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
f6ab6b0 @manuelpichler - email address changed.
manuelpichler authored
37 * @author Manuel Pichler <mapi@phpundercontrol.org>
788e33f @manuelpichler - BSD License comments added.
manuelpichler authored
38 * @copyright 2007-2008 Manuel Pichler. All rights reserved.
39 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
40 * @version @package_version@
41 * @link http://www.phpundercontrol.org/
42 ****************************************************************************-->
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
43 <cruisecontrol>
44 <!--
45 Each CruiseControl project needs it's own project section. The CruiseControl
46 configuration allows multiple project configurations.
47
48 * http://cruisecontrol.sourceforge.net/main/configxml.html
49 -->
50 <project name="phpundercontrol.org" buildafterfailed="false">
51 <!--
52 CruiseControl provides a plugin system to integrate custom functionality
53 into the build cycles.
54
55 This example uses two subversion plugins, the svn bootstrapper and the svn
56 modification set. For more details on CruiseControl plugins see original
57 documentation:
58
59 * http://cruisecontrol.sourceforge.net/main/configxml.html#plugin
60 * http://cruisecontrol.sourceforge.net/main/plugins.html
61 -->
62 <plugin name="svnbootstrapper"
63 classname="net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper" />
64 <plugin name="svn"
65 classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN" />
66
67 <!--
68 This listener stores the current build status.
69
70 * http://cruisecontrol.sourceforge.net/main/configxml.html#listeners
71 -->
72 <listeners>
73 <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
74 </listeners>
75
76 <!--
77 The modificationset tag checks for project changes in the used revision
78 control system. If it detects a change a new build is started. The optional
79 "quietperiod" attribute defines the seconds without project changes, in this
80 example CruiseControl will only trigger a new build if at least 60 seconds
81 without a change are gone by.
82
83 * http://cruisecontrol.sourceforge.net/main/configxml.html#modificationset
84 -->
85 <modificationset quietperiod="60">
86 <svn localWorkingCopy="projects/${project.name}/source/"/>
87 </modificationset>
88
89 <!--
90 The tasks defined in the bootstrapper section are run before CruiseControl
3d73df8 @manuelpichler - Inline documentation fixed.
manuelpichler authored
91 starts the project build process. The plugins defined here update common
92 resources of the local working copy of the project from the used revision
93 control system.
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
94
95 * http://cruisecontrol.sourceforge.net/main/configxml.html#bootstrappers
96 -->
97 <bootstrappers>
98 <svnbootstrapper localWorkingCopy="projects/${project.name}/source/" />
99 </bootstrappers>
100
101 <!--
102 The schedule element contains the concrete project build definition. In this
103 example the ant build system is used to perform the project build. The
104 "interval" attribute defines the period in seconds that CruiseControl waits
105 before it checks for modifications in the revision control system.
106 CruiseControl supports other build system for example phing and maven, for a
107 detailed listing of supported system see the documentation.
108
109 * http://cruisecontrol.sourceforge.net/main/configxml.html#schedule
110 -->
111 <schedule interval="120">
112 <ant anthome="apache-ant-1.7.0"
113 buildfile="projects/${project.name}/build.xml"/>
114 </schedule>
115
116 <!--
117 The nested merge element takes all generated xml log files and merges them
118 into a single big build log file. This new file is used by the CruiseControl
119 user interface to generate the different views.
120
121 * http://cruisecontrol.sourceforge.net/main/configxml.html#log
122 -->
123 <log dir="logs/${project.name}">
124 <merge dir="projects/${project.name}/build/logs/"/>
125 </log>
126
127 <!--
128 CruiseControl provides multiple project publishers. Publishers are run after
129 the project build. The artifactspublisher can be used to copy some build
130 artifacts like coverage reports or the api documentation from the working
131 directory into the publish directory for the current build. Another publisher
132 sends emails for failed or successful builds
133
134 * http://cruisecontrol.sourceforge.net/main/configxml.html#publishers
135 -->
136 <publishers>
137 <currentbuildstatuspublisher file="logs/${project.name}/buildstatus.txt"/>
138 <!--
139 Copies the generated api documentation into project artifacts directory.
140 -->
141 <artifactspublisher dir="projects/${project.name}/build/api"
59e3bdc @manuelpichler - Behavior of artifacts lookup changed to artifacts first, keep old l…
manuelpichler authored
142 dest="artifacts/${project.name}"
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
143 subdirectory="api"/>
144 <!--
145 Copies the generated code coverage report into project artifacts directory.
146 -->
147 <artifactspublisher dir="projects/${project.name}/build/coverage"
59e3bdc @manuelpichler - Behavior of artifacts lookup changed to artifacts first, keep old l…
manuelpichler authored
148 dest="artifacts/${project.name}"
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
149 subdirectory="coverage"/>
c5cfe8d @manuelpichler - New graph generator added to example config.xml file.
manuelpichler authored
150
151 <!--
152 Generates the different metric charts with the phpUnderControl ezcGraph
153 extension.
154 -->
59e3bdc @manuelpichler - Behavior of artifacts lookup changed to artifacts first, keep old l…
manuelpichler authored
155 <execute command="phpuc graph logs/${project.name} artifacts/${project.name}"/>
c5cfe8d @manuelpichler - New graph generator added to example config.xml file.
manuelpichler authored
156
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
157 <!--
158 Sends simple text emails after a project build. For nicer html emails,
159 checkout the original CruiseControl documentation.
160
161 * http://cruisecontrol.sourceforge.net/main/configxml.html#email
162 * http://cruisecontrol.sourceforge.net/main/configxml.html#htmlemail
163 -->
164 <email mailhost="smtp.localhost"
165 username="username"
166 password="password"
167 returnaddress="cruise@phpundercontrol.org"
168 buildresultsurl="http://localhost:8080/buildresults/${project.name}"
169 skipusers="true"
170 spamwhilebroken="true">
171 <always address="successful@php-under-control.org"/>
59e3bdc @manuelpichler - Behavior of artifacts lookup changed to artifacts first, keep old l…
manuelpichler authored
172 <always address="cruise@phpundercontrol.org"/>
7d43da9 @manuelpichler - Example CruiseControl config.xml file added.
manuelpichler authored
173 <failure address="failed@php-under-control.org"/>
174 </email>
175 </publishers>
176 </project>
177 </cruisecontrol>
Something went wrong with that request. Please try again.