-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcc-build.xml
More file actions
65 lines (52 loc) · 2.03 KB
/
cc-build.xml
File metadata and controls
65 lines (52 loc) · 2.03 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="openx" default="cruise">
<macrodef name="svn-update">
<attribute name="workDir"/>
<attribute name="username"/>
<attribute name="password"/>
<sequential>
<exec dir="@{workDir}" executable="svn" failonerror="true">
<arg line="update --non-interactive --username @{username} --password @{password}"/>
</exec>
</sequential>
</macrodef>
<target name="init">
<fail unless="label" message="Need to have 'label' defined"/>
</target>
<target name="clean">
<delete file="build.log"/>
<ant antfile="build.xml" dir="${basedir}" target="clean"/>
</target>
<target name="update">
<svn-update workDir="${basedir}" username="cruise" password="cruise"/>
</target>
<target name="clone">
<delete dir="target"/>
<copy todir="target" overwrite="true">
<fileset dir=".">
<exclude name="target/**"/>
</fileset>
</copy>
</target>
<target name="build" depends="init, clone">
<ant antfile="build.xml" dir="${basedir}/target" output="build.log" target="simpletest" />
</target>
<target name="chmod">
<ant antfile="build-canoo.xml" dir="${basedir}" target="canoo-chmod" inheritall="false"/>
</target>
<target name="test-canoo" depends="clean, chmod, clone">
<!-- <target name="test-canoo" depends="clean, clone"> -->
<ant antfile="build-canoo.xml" dir="${basedir}/target" output="build.log" target="run-test" />
</target>
<target name="test-canoo-schemaspy" depends="test-jmeter">
<ant antfile="build.xml" dir="${basedir}/target/tests/schemaspy" output="schemaspy.log" target="schemaspy" inheritall="true"/>
</target>
<target name="test-jmeter" depends="test-canoo">
<ant antfile="build.xml" dir="${basedir}/target/tests/jmeter" output="jmeter.log" target="jmeter" inheritall="true"/>
</target>
<target name="make-release">
<ant antfile="build.xml" dir="${basedir}" output="build.log" target="release" />
</target>
<target name="cruise" depends="init, update, clean, build"/>
<target name="release" depends="init, clean, update, make-release"/>
</project>