-
Notifications
You must be signed in to change notification settings - Fork 7
/
cruise.xml
41 lines (34 loc) · 1.45 KB
/
cruise.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="us-ascii" ?>
<project name="WebTest CC" basedir="." default="cruise">
<!-- refactor: this should go into shared properties file -->
<property name="webTestReport.file" value="WebTestReport.xml"/> <!-- 3 duplicates ! -->
<!--
label is given by CruiseControl, provides a default value here for the case where
the user starts this script from hand.
-->
<property name="label" value="manualBuild"/>
<target name="delegate">
<echo message="*** Starting the WebTest specific build parts ***"/>
<ant antfile="build.xml" target="full">
<property name="buildnumber" value="${label}"/>
<property name="skip.clover" value="false"/>
</ant>
<echo message="*** WebTest build successfully ended ***"/>
</target>
<target name="tagLastBuild">
<exec executable="git" failonerror="true" logError="true">
<arg line="tag -m 'successful cc build' ${label}"/>
</exec>
<exec executable="git" failonerror="true" logError="true">
<arg line="push origin --tags"/>
</exec>
</target>
<target name="update">
<echo message="Getting the detected modifications...."/>
<!-- first a revert to avoid merge problems in update (some files are generated but under SVN!) -->
<exec executable="git" failonerror="true" logError="true">
<arg line="pull origin master"/>
</exec>
</target>
<target name="cruise" depends="update, delegate, tagLastBuild"/>
</project>