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