forked from SCECcode/cvmh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
91 lines (78 loc) · 2.47 KB
/
build.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<project basedir="." name="buildCVMH" default="ccbuild" >
<!-- Read environment variables in -->
<property environment="env"/>
<property name="pythonpath" value="${env.PYTHONPATH}"/>
<!-- Value for CENTERCODE environment variable -->
<!-- property name="centercode" value="${cruise.home}/${project.name}/checkout" / -->
<!-- property name="srccode" value="${centercode}/src" / -->
<!-- Update source code from SVN repository -->
<target name="update"
description="Update source code from SVN repository.">
<exec executable="svn" failonerror="true">
<arg line="update ."/>
</exec>
</target>
<!-- Clean binaries -->
<target name="clean"
depends="update"
description="Clean derived objects from SVN repository.">
<exec executable="make" failonerror="true">
<arg line="clean"/>
</exec>
</target>
<!-- Build binaries -->
<target name="build"
depends="clean"
description="Build binaries for CVMH.">
<exec executable="make" failonerror="true">
<arg line="all"/>
</exec>
</target>
<!-- Install binaries -->
<target name="install" depends="build" description="Install CVMH binaries.">
</target>
<!-- Run unit tests -->
<target name="check"
depends="build"
description="Run unit tests.">
<exec executable="make"
failonerror="true"
errorproperty="checkerrorlog">
<arg line="run_unit"/>
</exec>
</target>
<!-- Run acceptance tests -->
<target name="accept"
depends="build"
description="Run acceptance tests.">
<exec executable="make"
failonerror="true"
errorproperty="checkerrorlog">
<arg line="run_accept"/>
</exec>
</target>
<target name="ccbuild"
depends="check"
description="Check the build/unit test status.">
<echo>${checkerrorlog}</echo>
<fail message="One or more of the CVMH unit tests failed">
<condition>
<contains string="${checkerrorlog}"
substring="FAIL"
casesensitive="yes"/>
</condition>
</fail>
</target>
<target name="ccaccept"
depends="accept"
description="Check the build/unit/acceptance test status.">
<echo>${checkerrorlog}</echo>
<fail message="One or more of the CVMH acceptance tests failed">
<condition>
<contains string="${checkerrorlog}"
substring="FAIL"
casesensitive="yes"/>
</condition>
</fail>
</target>
</project>