common/build.postbuild.xml
changeset 861 caa0601f50c5
parent 848 56d2bc67ec40
child 864 2b0f08dedb30
equal deleted inserted replaced
860:fbd25e274e6b 861:caa0601f50c5
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
     2 <project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
     3     <target name="sf-postbuild">
     3     <target name="sf-postbuild">
       
     4         <stopwatch name="sf-postbuild"/>
     4         <echo>[SF-POSTBUILD]</echo>
     5         <echo>[SF-POSTBUILD]</echo>
     5         
     6         
     6         <if><istrue value="${sf.relicense.exported.headers}"/>
     7         <if><istrue value="${sf.relicense.exported.headers}"/>
     7         <then>
     8         <then>
     8             <runtarget target="sf-run-sfl-licence-munging"/>
     9             <runtarget target="sf-run-sfl-licence-munging"/>
    30             
    31             
    31             <!-- Package up the binaries we built -->
    32             <!-- Package up the binaries we built -->
    32             <if>
    33             <if>
    33                 <istrue value="${sf.spec.package.bin.enable}"/>
    34                 <istrue value="${sf.spec.package.bin.enable}"/>
    34                 <then>
    35                 <then>
       
    36                     <stopwatch name="sf-postbuild packaging binaries"/>
    35                     <echo message="INFO Packaging Binaries"/>
    37                     <echo message="INFO Packaging Binaries"/>
    36                     <runtarget target="sf-package-binary"/>
    38                     <runtarget target="sf-package-binary"/>
    37                     <runtarget target="sf-package-tools"/>
    39                     <runtarget target="sf-package-tools"/>
    38     
    40     
    39                     <echo message="INFO Validate Zip files"/>
    41                     <echo message="INFO Validate Zip files"/>
    40                     <runtarget target="sf-package-validate"/>
    42                     <runtarget target="sf-package-validate"/>
       
    43                     <stopwatch name="sf-postbuild packaging binaries" action="elapsed"/>
    41                 </then>
    44                 </then>
    42             </if>
    45             </if>
    43             
    46             
    44             <!-- run build analysis tools -->
    47             <!-- run build analysis tools -->
    45             <runtarget target="sf-run-analysis"/>
    48             <runtarget target="sf-run-analysis"/>
    52                 </then>
    55                 </then>
    53             </if>
    56             </if>
    54         </parallel>
    57         </parallel>
    55         
    58         
    56         <!-- Generate release_metadata entries for the md5 zips -->
    59         <!-- Generate release_metadata entries for the md5 zips -->
       
    60         <stopwatch name="sf-postbuild" action="elapsed"/>
    57         <antcall target="sf-zip-content">
    61         <antcall target="sf-zip-content">
    58             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
    62             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
    59             <param name="zip.target.name" value="bin-just-metadata" />
    63             <param name="zip.target.name" value="bin-just-metadata" />
    60         </antcall>
    64         </antcall>
       
    65         <stopwatch name="sf-postbuild" action="elapsed"/>
    61  
    66  
    62         <!-- Launch smoketest -->
    67         <!-- Launch smoketest -->
    63         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
    68         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
    64             <then>
    69             <then>
    65                 <runtarget target="sf-build-smoketestpkg"/>
    70                 <runtarget target="sf-build-smoketestpkg"/>
    90                 
    95                 
    91                 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
    96                 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
    92                 <runtarget target="sf-publish"/>
    97                 <runtarget target="sf-publish"/>
    93             </then>
    98             </then>
    94         </if>
    99         </if>
       
   100         <stopwatch name="sf-postbuild" action="elapsed"/>
    95     </target>
   101     </target>
    96 
   102 
    97     <target name="sf-tag-hg-code">
   103     <target name="sf-tag-hg-code">
    98         <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
   104         <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
    99         <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
   105         <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
   330         </exec>  
   336         </exec>  
   331     </target>
   337     </target>
   332 
   338 
   333     <!-- runs analysis of missing bins and source -->
   339     <!-- runs analysis of missing bins and source -->
   334     <target name="sf-run-analysis">
   340     <target name="sf-run-analysis">
       
   341         <stopwatch name="sf-run-analysis"/>
   335         <mkdir dir="${build.log.dir}/analysis"/>
   342         <mkdir dir="${build.log.dir}/analysis"/>
   336         <parallel>
   343         <parallel>
   337           <runtarget target="sf-run-analysis-ant"/>
   344           <runtarget target="sf-run-analysis-ant"/>
   338           <runtarget target="sf-run-analysis-raptor"/>
   345           <runtarget target="sf-run-analysis-raptor"/>
   339           <runtarget target="sf-run-analysis-yarp"/>
   346           <runtarget target="sf-run-analysis-yarp"/>
   344           <istrue value="${sf.spec.publish.enable}"/>
   351           <istrue value="${sf.spec.publish.enable}"/>
   345             <then>
   352             <then>
   346             <runtarget target="sf-run-analysis-diamonds"/>
   353             <runtarget target="sf-run-analysis-diamonds"/>
   347             </then>
   354             </then>
   348         </if>
   355         </if>
       
   356         <stopwatch name="sf-run-analysis" action="elapsed"/>
   349     </target>
   357     </target>
   350 
   358 
   351     <target name="sf-run-analysis-ant">    
   359     <target name="sf-run-analysis-ant">    
   352         <echo message="Running source analysis of ANT output"/>
   360         <echo message="Running source analysis of ANT output"/>
   353         <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
   361         <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">