author | Bob Rosenberg <bob.rosenberg@nokia.com> |
Mon, 20 Sep 2010 10:55:43 +0100 | |
changeset 658 | cab9da9b71bb |
parent 628 | 7c4a911dc066 |
child 645 | b8d81fa19e7d |
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 |
--> |
628 | 23 |
<project name="minibuild.ido" default="minibuild" 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" /> |
|
628 | 31 |
<property name="cmt.enabled" value="true" /> |
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" /> |
|
628 | 36 |
<!-- Compatibility analyser enabling flag, causes binary check to be run --> |
37 |
<property name="ca.enabled" value="true" /> |
|
588 | 38 |
|
39 |
<condition property="ccm.project.wa_path" value="${data.drive.letter}:\Build_${data.drive.letter}\${env.USERNAME}\ido_wa\${build.name}" else="${build.name}\wa" > |
|
40 |
<os family="windows"/> |
|
41 |
</condition> |
|
42 |
<property name="ccm.enabled" value="true" /> |
|
628 | 43 |
<property name="iad.pkg.validation.enabled" value="true" /> |
588 | 44 |
|
45 |
<!--property name="ido.name" value="test_cmt" /--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
46 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
47 |
|
588 | 48 |
<!-- build configuration --> |
49 |
<property name="sysdef.configurations.list" value="helium_minibuild_ido" /> |
|
50 |
<path id="system.definition.files"> |
|
51 |
<fileset dir="${config.dir}" includes="sysdefs/*.sysdef.xml" /> |
|
52 |
<fileset dir="${ccm.project.wa_path}" includes="*/*/*/layers.sysdef.xml" /> |
|
53 |
</path> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
54 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
55 |
|
588 | 56 |
<!-- Configuring the build system --> |
57 |
<property name="build.system" value="ec-helium" /> |
|
58 |
<property name="rvct.version" value="22_686" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
59 |
|
588 | 60 |
<!-- Configuring get latest env. --> |
61 |
<property name="s60.grace.service" value="S60RnD" /> |
|
628 | 62 |
<property name="s60.grace.product" value="pf_5250_prd" /> |
63 |
<property name="s60.grace.release" value="pf_5250_prd_\d{2}\.\d{1}\.\d{3}" /> |
|
587 | 64 |
|
588 | 65 |
<!-- matching mcl_200948_hw79 --> |
66 |
<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 | 67 |
<os family="windows"/> |
68 |
</condition> |
|
588 | 69 |
<!-- Synergy configuration --> |
70 |
<property name="ccm.database" value="tr1ido" /> |
|
587 | 71 |
<property name="ccm.project" value="MinibuildDomain-50_200832:project:tr1test1#1" /> |
588 | 72 |
<property name="prep.delivery.file" location="config/delivery.xml" /> |
73 |
<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
|
74 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
75 |
|
588 | 76 |
<!-- Synergy is not configured --> |
77 |
<property name="skip.password.validation" value="1" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
78 |
|
588 | 79 |
<!-- IDO robot configuration --> |
628 | 80 |
<property name="robot.release.enabled" value="true" /> |
588 | 81 |
<tstamp> |
82 |
<format property="ido.robot.tstamp" pattern="yyyyMMddhhmmss" /> |
|
83 |
</tstamp> |
|
84 |
<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
|
85 |
|
588 | 86 |
<import file="hack-test.ant.xml" /> |
87 |
<import file="${helium.dir}/helium.ant.xml" /> |
|
587 | 88 |
<import file="config/stages_config.ant.xml" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
89 |
|
628 | 90 |
<!-- Run the full sequence of target for the minibuild. ,minibuild-prep,compile-main,zip-ee,minibuild-check--> |
91 |
<target name="do-minibuild" depends="ido-update-build-area, |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
92 |
flag-ba-for-deletion, |
628 | 93 |
minibuild-cleanup, |
588 | 94 |
ido-build, |
95 |
check-diamonds, |
|
628 | 96 |
minibuild-check, |
97 |
run-hack, |
|
98 |
blocks-create-bundles, |
|
99 |
final" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
100 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
101 |
|
628 | 102 |
<!--ant code coverage for minibuilds--> |
103 |
<target name="minibuild"> |
|
104 |
<antcall target="database"> |
|
105 |
<param name="home.files.only" value="false"/> |
|
106 |
</antcall> |
|
588 | 107 |
<mkdir dir="${helium.build.dir}/temp" /> |
108 |
<property name="config.temp.build.dir" location="${config.dir}/build" /> |
|
109 |
<hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="start" /> |
|
628 | 110 |
<runtarget target="do-minibuild" /> |
588 | 111 |
<hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="stop" /> |
112 |
<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.txt.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.txt"> |
|
113 |
<data expandProperties="yes"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
114 |
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
|
115 |
database: xml(${database.file}) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
116 |
</data> |
588 | 117 |
</fmpp> |
118 |
<loadfile srcfile="${helium.build.dir}/temp/test_minibuild.txt" property="ant.coverage.summary" /> |
|
119 |
<echo> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
120 |
The summary of Ant code coverage: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
121 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
122 |
${ant.coverage.summary}</echo> |
588 | 123 |
<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.html.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.html"> |
124 |
<data expandProperties="yes"> |
|
125 |
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
|
126 |
database: xml(${database.file}) |
588 | 127 |
</data> |
128 |
</fmpp> |
|
129 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
130 |
|
179 | 131 |
|
588 | 132 |
<!-- Preparing the content on top of the env --> |
628 | 133 |
<target name="ido-50-build" depends="ido-build-prep,compile-main,build-log-summary,render-internal-exports, |
134 |
update-policy-src-reference,render-validate-policy,check-sf-source-header, |
|
135 |
ido-codescanner,iad-check-pkg-version,ats-test,publish-tasks-to-folder, |
|
136 |
ido-sources-to-s60-build-robot" /> |
|
137 |
<target name="ido-build-prep" depends="ido-configure-prep,init,log-build-env,set-arm-version,check-free-space, |
|
138 |
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
|
139 |
|
588 | 140 |
<!-- needed to defined skip.prep-drive --> |
141 |
<target name="ido-configure-prep"> |
|
142 |
<property name="skip.prep-drive" value="true" /> |
|
143 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
144 |
|
588 | 145 |
<!-- real IDO use this to switch branch target. --> |
146 |
<target name="ido-build"> |
|
147 |
<runtarget target="ido-50-build" /> |
|
148 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
149 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
150 |
|
588 | 151 |
<target name="check-diamonds"> |
152 |
<!--loadfile srcfile="${build.log.dir}/diamonds-start.log.xml" property="diamonds.log.start" /> |
|
153 |
<echo>${diamonds.log.start}</echo--> |
|
154 |
<!--loadresource property="diamonds.log.start.output"> |
|
155 |
<url url="${diamonds.build.url}?fmt=xml" /> |
|
156 |
</loadresource--> |
|
157 |
<!--echo>${diamonds.log.start.output}</echo--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
158 |
<xmlvalidate lenient="yes"> |
588 | 159 |
<fileset dir="${build.log.dir}"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
160 |
<include name="diamonds-finish.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
161 |
<include name="diamonds-full-results.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
162 |
<include name="diamonds-start.log.xml"/> |
588 | 163 |
<include name="check-tool-dependencies.xml"/> |
164 |
<include name="compile-main.xml"/> |
|
165 |
<include name="create-bom.xml"/> |
|
166 |
<include name="build-time.xml"/> |
|
167 |
</fileset> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
168 |
</xmlvalidate> |
588 | 169 |
</target> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
170 |
|
628 | 171 |
<target name="minibuild-cleanup"> |
588 | 172 |
<delete verbose="true" includeemptydirs="true" failonerror="false"> |
173 |
<fileset dir="${build.drive}/" casesensitive="false"> |
|
174 |
<include name="makefile" /> |
|
175 |
<include name="*.mk" /> |
|
176 |
<include name="ecloud_tmp_*/**" /> |
|
177 |
<include name="emake.*" /> |
|
178 |
<include name="epoc32/build/**" /> |
|
179 |
<include name="epoc32/rombuild/*/**" /> |
|
180 |
<include name="output/**" /> |
|
181 |
<include name="timestart.txt" /> |
|
182 |
<include name="timestop.txt" /> |
|
183 |
</fileset> |
|
184 |
</delete> |
|
185 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
186 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
187 |
|
628 | 188 |
<target name="minibuild-check"> |
588 | 189 |
<!-- Check if prep has set some prop correctly... --> |
190 |
<!-- remember to update the selection by the environment variable in hlm.bat when switching to other compiler version --> |
|
191 |
<echo>'${arm.compiler.version}'</echo> |
|
192 |
<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
|
193 |
|
588 | 194 |
<!-- Check if compile-main step did what expected... --> |
195 |
<au:assertFileExists file="${canonical.sysdef.file}" /> |
|
196 |
<if> |
|
197 |
<or> |
|
198 |
<isset property="build.system.ec-helium" /> |
|
199 |
<isset property="build.system.ec" /> |
|
200 |
</or> |
|
201 |
<then> |
|
202 |
<au:assertFileExists file="${build.drive}/helium_minibuild_ido.make" /> |
|
203 |
<au:assertFileExists file="${build.drive}/helium_minibuild_ido_clean.make" /> |
|
204 |
<au:assertFileExists file="${build.drive}/emake.data" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
205 |
|
588 | 206 |
<au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_ido_run_emake.bat" /> |
207 |
<au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_ido_clean_run_emake.bat" /> |
|
208 |
</then> |
|
209 |
</if> |
|
210 |
||
211 |
<!-- Check if stagelogging step did what expected... --> |
|
212 |
<au:assertFileExists file="${build.log.dir}/${build.id}_ido_prep.ant.log" /> |
|
213 |
<au:assertFileExists file="${build.log.dir}/${build.id}_compile.ant.log" /> |
|
214 |
<au:assertFileExists file="${build.log.dir}/${build.id}_test.ant.log" /> |
|
215 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
216 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
217 |
|
588 | 218 |
<target name="update-policy-src-reference" depends="ido-create-ado-mapping"> |
219 |
<hlm:iniKeys2Path ini="${ado.mapping.file}" pathid="reference.policy.path.list"/> |
|
220 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
221 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
222 |
</project> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
223 |