author | Bob Rosenberg <bob.rosenberg@nokia.com> |
Tue, 03 Aug 2010 12:14:54 +0100 | |
changeset 634 | f7179968fc36 |
parent 588 | c7c26511138f |
child 628 | 7c4a911dc066 |
permissions | -rw-r--r-- |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
2 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
3 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
4 |
Name : |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
5 |
Part of : Helium |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
6 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
8 |
All rights reserved. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
9 |
This component and the accompanying materials are made available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
10 |
under the terms of the License "Eclipse Public License v1.0" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
11 |
which accompanies this distribution, and is available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html". |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
13 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
14 |
Initial Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
15 |
Nokia Corporation - initial contribution. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
16 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
17 |
Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
18 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
19 |
Description: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
20 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
21 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
22 |
--> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
23 |
<project name="minibuild.ido" default="help" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium"> |
588 | 24 |
<property environment="env" /> |
25 |
<import file="../site/${env.TEAM}.ant.xml" /> |
|
26 |
<dirname property="config.dir" file="${ant.file.minibuild.ido}" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
|
588 | 28 |
<property name="data.drive.letter" value="E" /> |
29 |
<!-- Enable Helium internal assertion checking. --> |
|
30 |
<property name="hlm.enable.asserts" value="1" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
31 |
|
588 | 32 |
<property name="build.name" value="minibuild_ido" /> |
33 |
<property name="build.family" value="test_minibuild_ido" /> |
|
34 |
<property name="major.version" value="0" /> |
|
35 |
<property name="minor.version" value="0" /> |
|
36 |
||
37 |
<condition property="ccm.project.wa_path" value="${data.drive.letter}:\Build_${data.drive.letter}\${env.USERNAME}\ido_wa\${build.name}" else="${build.name}\wa" > |
|
38 |
<os family="windows"/> |
|
39 |
</condition> |
|
40 |
<property name="ccm.enabled" value="true" /> |
|
41 |
||
42 |
<!-- CMT++ only runs on windows not linux machines --> |
|
43 |
<condition property="enable.cmt" > |
|
44 |
<os family="windows" /> |
|
45 |
</condition> |
|
46 |
<!--property name="ido.name" value="test_cmt" /--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
47 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
48 |
|
588 | 49 |
<!-- build configuration --> |
50 |
<property name="sysdef.configurations.list" value="helium_minibuild_ido" /> |
|
51 |
<path id="system.definition.files"> |
|
52 |
<fileset dir="${config.dir}" includes="sysdefs/*.sysdef.xml" /> |
|
53 |
<fileset dir="${ccm.project.wa_path}" includes="*/*/*/layers.sysdef.xml" /> |
|
54 |
</path> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
55 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
56 |
|
588 | 57 |
<!-- Configuring the build system --> |
58 |
<property name="build.system" value="ec-helium" /> |
|
59 |
<property name="rvct.version" value="22_686" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
60 |
|
588 | 61 |
<!-- Configuring get latest env. --> |
62 |
<property name="s60.grace.service" value="S60RnD" /> |
|
63 |
<property name="s60.grace.product" value="pf_5250" /> |
|
64 |
<property name="s60.grace.release" value="pf_5250_\d{6}" /> |
|
587 | 65 |
|
588 | 66 |
<!-- matching mcl_200948_hw79 --> |
67 |
<condition property="prep.root.dir" value="${data.drive.letter}:\Build_${data.drive.letter}\${env.USERNAME}\ido_ba\${build.name}" else="${build.name}\ido_ba" > |
|
587 | 68 |
<os family="windows"/> |
69 |
</condition> |
|
588 | 70 |
<!-- Synergy configuration --> |
71 |
<property name="ccm.database" value="tr1ido" /> |
|
587 | 72 |
<property name="ccm.project" value="MinibuildDomain-50_200832:project:tr1test1#1" /> |
588 | 73 |
<property name="prep.delivery.file" location="config/delivery.xml" /> |
74 |
<property name="publish.ccm.folder" value="tr1ido#2311" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
75 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
76 |
|
588 | 77 |
<!-- Synergy is not configured --> |
78 |
<property name="skip.password.validation" value="1" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
79 |
|
588 | 80 |
<!-- IDO robot configuration --> |
81 |
<property name="do.robot.release" value="MinibuildDomain" /> |
|
82 |
<tstamp> |
|
83 |
<format property="ido.robot.tstamp" pattern="yyyyMMddhhmmss" /> |
|
84 |
</tstamp> |
|
85 |
<property name="s60.build.robot.path" location="${build.drive}/shared_drive/s60robot/${build.name}/${ido.robot.tstamp}" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
86 |
|
588 | 87 |
<import file="hack-test.ant.xml" /> |
88 |
<import file="${helium.dir}/helium.ant.xml" /> |
|
587 | 89 |
<import file="config/stages_config.ant.xml" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
90 |
|
588 | 91 |
<!-- Run the full sequence of target for the minibuild. ,mini-build-prep,compile-main,zip-ee,mini-build-check--> |
92 |
<target name="do-mini-build" depends="ido-update-build-area, |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
93 |
flag-ba-for-deletion, |
588 | 94 |
mini-build-cleanup, |
95 |
ido-build, |
|
96 |
check-diamonds, |
|
97 |
mini-build-check, |
|
98 |
run-hack" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
99 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
100 |
|
588 | 101 |
<!--ant code coverage for mini-builds--> |
102 |
<target name="mini-build"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
103 |
<antcall target="database"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
104 |
<param name="home.files.only" value="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
105 |
</antcall> |
588 | 106 |
<mkdir dir="${helium.build.dir}/temp" /> |
107 |
<property name="config.temp.build.dir" location="${config.dir}/build" /> |
|
108 |
<hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="start" /> |
|
109 |
<runtarget target="do-mini-build" /> |
|
110 |
<hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="stop" /> |
|
111 |
<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.txt.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.txt"> |
|
112 |
<data expandProperties="yes"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
113 |
doc: xml(${helium.build.dir}/temp/test.minibuild-ido.xml) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
114 |
database: xml(${database.file}) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
115 |
</data> |
588 | 116 |
</fmpp> |
117 |
<loadfile srcfile="${helium.build.dir}/temp/test_minibuild.txt" property="ant.coverage.summary" /> |
|
118 |
<echo> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
119 |
The summary of Ant code coverage: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
120 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
121 |
${ant.coverage.summary}</echo> |
588 | 122 |
<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.html.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.html"> |
123 |
<data expandProperties="yes"> |
|
124 |
doc: xml(${helium.build.dir}/temp/test.minibuild-ido.xml) |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
125 |
database: xml(${database.file}) |
588 | 126 |
</data> |
127 |
</fmpp> |
|
128 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
129 |
|
179 | 130 |
|
588 | 131 |
<!-- Preparing the content on top of the env --> |
132 |
<target name="ido-50-build" depends="ido-build-prep,compile-main,build-log-summary,render-internal-exports,update-policy-src-reference,render-validate-policy,check-sf-source-header,localisation-50-build,ido-codescanner,ats-test,publish-tasks-to-folder,ido-sources-to-s60-build-robot" /> |
|
133 |
<target name="ido-build-prep" depends="ido-configure-prep,init,check-tool-dependencies,log-build-env,set-arm-version,check-free-space,diamonds,do-prep-work-area,ido-prep-clean,ido-prep-copy,create-bom" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
134 |
|
588 | 135 |
<!-- needed to defined skip.prep-drive --> |
136 |
<target name="ido-configure-prep"> |
|
137 |
<property name="skip.prep-drive" value="true" /> |
|
138 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
139 |
|
588 | 140 |
<!-- real IDO use this to switch branch target. --> |
141 |
<target name="ido-build"> |
|
142 |
<runtarget target="ido-50-build" /> |
|
143 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
144 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
145 |
|
588 | 146 |
<target name="check-diamonds"> |
147 |
<!--loadfile srcfile="${build.log.dir}/diamonds-start.log.xml" property="diamonds.log.start" /> |
|
148 |
<echo>${diamonds.log.start}</echo--> |
|
149 |
<!--loadresource property="diamonds.log.start.output"> |
|
150 |
<url url="${diamonds.build.url}?fmt=xml" /> |
|
151 |
</loadresource--> |
|
152 |
<!--echo>${diamonds.log.start.output}</echo--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
153 |
<xmlvalidate lenient="yes"> |
588 | 154 |
<fileset dir="${build.log.dir}"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
155 |
<include name="diamonds-finish.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
156 |
<include name="diamonds-full-results.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
157 |
<include name="diamonds-start.log.xml"/> |
588 | 158 |
<include name="check-tool-dependencies.xml"/> |
159 |
<include name="compile-main.xml"/> |
|
160 |
<include name="create-bom.xml"/> |
|
161 |
<include name="build-time.xml"/> |
|
162 |
</fileset> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
163 |
</xmlvalidate> |
588 | 164 |
</target> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
165 |
|
588 | 166 |
<target name="mini-build-cleanup"> |
167 |
<delete verbose="true" includeemptydirs="true" failonerror="false"> |
|
168 |
<fileset dir="${build.drive}/" casesensitive="false"> |
|
169 |
<include name="makefile" /> |
|
170 |
<include name="*.mk" /> |
|
171 |
<include name="ecloud_tmp_*/**" /> |
|
172 |
<include name="emake.*" /> |
|
173 |
<include name="epoc32/build/**" /> |
|
174 |
<include name="epoc32/rombuild/*/**" /> |
|
175 |
<include name="output/**" /> |
|
176 |
<include name="timestart.txt" /> |
|
177 |
<include name="timestop.txt" /> |
|
178 |
</fileset> |
|
179 |
</delete> |
|
180 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
181 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
182 |
|
588 | 183 |
<target name="mini-build-check"> |
184 |
<!-- Check if prep has set some prop correctly... --> |
|
185 |
<!-- remember to update the selection by the environment variable in hlm.bat when switching to other compiler version --> |
|
186 |
<echo>'${arm.compiler.version}'</echo> |
|
187 |
<au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 686\]" casesensitive="false" multiline="true" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
188 |
|
588 | 189 |
<!-- Check if compile-main step did what expected... --> |
190 |
<au:assertFileExists file="${canonical.sysdef.file}" /> |
|
191 |
<if> |
|
192 |
<or> |
|
193 |
<isset property="build.system.ec-helium" /> |
|
194 |
<isset property="build.system.ec" /> |
|
195 |
</or> |
|
196 |
<then> |
|
197 |
<au:assertFileExists file="${build.drive}/helium_minibuild_ido.make" /> |
|
198 |
<au:assertFileExists file="${build.drive}/helium_minibuild_ido_clean.make" /> |
|
199 |
<au:assertFileExists file="${build.drive}/emake.data" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
200 |
|
588 | 201 |
<au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_ido_run_emake.bat" /> |
202 |
<au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_ido_clean_run_emake.bat" /> |
|
203 |
</then> |
|
204 |
</if> |
|
205 |
||
206 |
<!-- Check if stagelogging step did what expected... --> |
|
207 |
<au:assertFileExists file="${build.log.dir}/${build.id}_ido_prep.ant.log" /> |
|
208 |
<au:assertFileExists file="${build.log.dir}/${build.id}_compile.ant.log" /> |
|
209 |
<au:assertFileExists file="${build.log.dir}/${build.id}_test.ant.log" /> |
|
210 |
<au:assertFileExists file="${build.log.dir}/${build.id}_localisation.ant.log" /> |
|
211 |
||
212 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
213 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
214 |
|
588 | 215 |
<target name="update-policy-src-reference" depends="ido-create-ado-mapping"> |
216 |
<hlm:iniKeys2Path ini="${ado.mapping.file}" pathid="reference.policy.path.list"/> |
|
217 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
218 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
219 |
</project> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
220 |