annotate build.xml @ 133:ea7972ed3ab7

Setup snapshot builds
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Thu, 14 Oct 2010 16:11:17 +0400
parents 60d67a1e5502
children dbb5b9f3069b
rev   line source
6
c05869fe20af dist target added
Pavel.Sher
parents: 5
diff changeset
1 <project name="Mercurial VCS Support" default="dist" basedir=".">
5
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
2 <property file="mercurial.properties"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
3 <import file="mercurial.xml"/>
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
4
6
c05869fe20af dist target added
Pavel.Sher
parents: 5
diff changeset
5 <property name="distPath" value="${basedir}/dist"/>
5
8e6ade135483 first version of build.xml
Pavel.Sher
parents:
diff changeset
6
77
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
7 <property name="plugin.name" value="mercurial"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
8
133
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
9 <property name="build.number" value=""/>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
10 <tstamp>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
11 <format property="timestamp" pattern="yyyyMMddhhmmss"/>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
12 </tstamp>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
13 <property name="snapshot.build.number" value="SNAPSHOT-${timestamp}"/>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
14 <property name="build.vcs.number" value=""/>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
15
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
16 <condition property="plugin.version" value="${snapshot.build.number}" else="${build.number}">
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
17 <matches pattern="snapshot-.*" string="${build.number}" casesensitive="false"/>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
18 </condition>
ea7972ed3ab7 Setup snapshot builds
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 113
diff changeset
19
77
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
20 <import file="teamcity-common.xml"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
21
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
22 <target name="package" depends="define.version">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
23 <package.teamcity.plugin name="${plugin.name}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
24 server.output="${mercurial-server.output.dir}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
25 agent.output="${mercurial-agent.output.dir}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
26 common.output="${mercurial-common.output.dir}"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
27 plugin.descriptor.file="${basedir}/teamcity-plugin.xml"
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
28 plugin.version="${plugin.version}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
29 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
30
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
31 <target name="define.version" depends="define.version.if.under.teamcity">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
32 <tstamp>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
33 <format property="current.time" pattern="yyyyMMddHHmm"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
34 </tstamp>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
35 <property name="plugin.version" value="SNAPSHOT-${current.time}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
36 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
37
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
38 <target name="define.version.if.under.teamcity" if="build.number">
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
39 <property name="plugin.version" value="${build.number}"/>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
40 </target>
cfbeaf010bd4 prepare to bundle with TeamCity
Pavel.Sher
parents: 70
diff changeset
41
78
1dcede89a079 preparing to bundle with TeamCity
Pavel.Sher
parents: 77
diff changeset
42 <target name="dist" depends="check.teamcitydistribution,all,package"/>
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
43
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
44 <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
45
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
46 <path id="tests_classpath">
113
60d67a1e5502 revert prev change
Pavel.Sher
parents: 112
diff changeset
47 <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/>
60d67a1e5502 revert prev change
Pavel.Sher
parents: 112
diff changeset
48 <pathelement location="${agent.home.dir}/lib/buildServerRuntimeUtil.jar"/>
51
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
49 <path refid="mercurial-tests.runtime.module.classpath"/>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
50 </path>
d8661b24ed37 extracting runtime-util.jar
Pavel.Sher
parents: 50
diff changeset
51
107
d7330bc105aa fix tests execution
Pavel.Sher
parents: 83
diff changeset
52 <target name="run-tests" depends="clean, init, compile.module.mercurial-tests">
50
d4b7dcc8d66e add ability to debug mercurial tests
Pavel.Sher
parents: 37
diff changeset
53 <property name="suspend" value="n"/>
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
54
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
55 <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter"
82
3418c64c2c0a one more attempt to fix tests
Pavel.Sher
parents: 78
diff changeset
56 outputdir="${basedir}/test-output" classpathref="tests_classpath" dumpcommand="true" workingDir="${basedir}">
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
57
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
58 <jvmarg value="-ea"/>
69
133e105cf0b8 disable debug in tests
Pavel.Sher
parents: 68
diff changeset
59 <!--<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5555"/>-->
14
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
60
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
61 <sysproperty key="java.awt.headless" value="true"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
62
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
63 <xmlfileset dir="${basedir}/mercurial-tests/src">
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
64 <include name="testng.xml"/>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
65 </xmlfileset>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
66 </testng>
b5b31085de22 run-tests target added
Pavel.Sher
parents: 6
diff changeset
67 </target>
109
Pavel.Sher
parents: 107
diff changeset
68 </project>