forked from Zutubi/pulse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bob2.xml
66 lines (60 loc) · 2.81 KB
/
bob2.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<project default-recipe="default">
<junit.pp name="junit.pp"/>
<property name="pulse.package" value="com.zutubi.pulse"/>
<macro name="capture-junit">
<dir-artifact name="combined junit" base="build/reports/junit/html" fail-if-not-present="false"/>
<dir-artifact name="core junit" base="$(pulse.package).core/build/reports/junit/html" fail-if-not-present="false"/>
<dir-artifact name="servercore junit" base="$(pulse.package).servercore/build/reports/junit/html" fail-if-not-present="false"/>
<dir-artifact name="master junit" base="$(pulse.package).master/build/reports/junit/html" fail-if-not-present="false"/>
<dir-artifact name="dev junit" base="$(pulse.package).dev/build/reports/junit/html" fail-if-not-present="false"/>
<dir-artifact name="junit xml reports">
<include pattern="**/build/reports/junit/xml/*.xml"/>
<process processor="$(junit.pp)"/>
</dir-artifact>
</macro>
<macro name="ant-build">
<ant name="build" targets="$(targets)">
<macro-ref macro="$(capture-junit)"/>
</ant>
</macro>
<recipe name="default">
<property name="targets" value="build.all"/>
<macro-ref macro="$(ant-build)"/>
</recipe>
<recipe name="acceptance">
<property name="targets" value="accept.master"/>
<ant name="build" targets="accept.master">
<macro-ref macro="$(capture-junit)"/>
<dir-artifact name="acceptance output" base="working" fail-if-not-present="false">
<include pattern="**/*"/>
<exclude pattern="pulse-accept/pulse-*"/>
</dir-artifact>
</ant>
</recipe>
<recipe name="acceptance debugging">
<ant name="build" targets="accept.master" args="-Dskip.tests=true">
<macro-ref macro="$(capture-junit)"/>
<dir-artifact name="acceptance output" base="working" fail-if-not-present="false">
<include pattern="**/*"/>
<exclude pattern="pulse-accept/pulse-*"/>
</dir-artifact>
<dir-artifact name="pulse-data" base="data" fail-if-not-present="false">
<include pattern="**/*"/>
</dir-artifact>
</ant>
</recipe>
<recipe name="release">
<executable name="prepare" exe="bash" args="prepare-release.sh $(pulse.version)"/>
<ant name="build" targets="package.master">
<macro-ref macro="$(capture-junit)"/>
<dir-artifact name="packages" base="build">
<include pattern="pulse-*$(pulse.version).*"/>
</dir-artifact>
</ant>
<ant name="dist" targets="dist.all"/>
<ant name="javadoc" targets="javadoc">
<dir-artifact name="javadoc" base="build/docs/javadoc"/>
</ant>
</recipe>
</project>