[jboss-cvs] JBossAS SVN: r58355 - trunk/tools/etc/cruisecontrol/scripts

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 14 16:05:55 EST 2006


Author: akostadinov
Date: 2006-11-14 16:05:55 -0500 (Tue, 14 Nov 2006)
New Revision: 58355

Added:
   trunk/tools/etc/cruisecontrol/scripts/build-ejb3-4.2-testsuite.xml
Log:
build file for ejb3 4.2

Added: trunk/tools/etc/cruisecontrol/scripts/build-ejb3-4.2-testsuite.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/scripts/build-ejb3-4.2-testsuite.xml	2006-11-14 21:04:58 UTC (rev 58354)
+++ trunk/tools/etc/cruisecontrol/scripts/build-ejb3-4.2-testsuite.xml	2006-11-14 21:05:55 UTC (rev 58355)
@@ -0,0 +1,118 @@
+<project name="build-ejb3-4.2-testsuite" default="copyresults">
+
+    <property name="cvs.repository" value=":pserver:anonymous at anoncvs.forge.jboss.com:/cvsroot/jboss"/>
+    <property name="log.dir" value="${basedir}/logbuild/ejb3-4.2-testsuite"/>
+    <property environment="env"/>
+
+    <import file="build-common.xml"/>
+
+    <target name="clean" depends="" description="Cleans checkout directory">
+	<sequential>
+            <antcall target="clean.checkout">
+               <param name="checkout.dir" value="../checkout/ejb3-4.2-testsuite"/>
+               <param name="artifacts.dir" value="${log.dir}"/>
+            </antcall>
+            <antcall target="version">
+               <param name="java.home" value="/opt/jdk1.5.0_03"/>
+               <param name="ant.home" value="${env.ANT_HOME}"/>
+            </antcall>	
+        </sequential>
+    </target>
+
+    <target name="getcode" depends="clean" description="Update packages from CVS">
+        <record name="${log.dir}/svnco.log" action="start"/>
+        <svn>
+            <checkout url="${svn.url}" destPath="../checkout/${jboss.dir}"/>
+        </svn>
+        <record name="${log.dir}/svnco.log" action="stop"/>
+    </target>
+
+    <target name="build" depends="getcode" description="Build the jboss-4.2 project">
+	<sequential>
+        <exec executable="ant" failonerror="false" resultproperty="build.returncode" output="${log.dir}/compilejboss-4.2.log">
+            <arg line=" -buildfile ../checkout/ejb3-4.2-testsuite/build/build.xml"/>
+            <env key="PATH" path="/opt/jdk1.5.0_03/bin:${env.PATH}"/>
+            <env key="JAVA_HOME" path="/opt/jdk1.5.0_03"/>
+        </exec>
+        <antcall target="copylogs">
+           <param name="dest.dir" value="${log.dir}"/>
+           <param name="proj.dir" value="ejb3-4.2-testsuite"/>
+        </antcall>
+	<condition property="build.success">
+	  <equals arg1="${build.returncode}" arg2="0"/>
+	</condition>
+	<fail unless="build.success">
+          Exit code: ${build.returncode} 
+	  See compilejboss-4.2.log in Build Artifacts for details.
+        </fail>
+	</sequential>
+    </target>
+
+    <target name="buildejb3"  depends="build" description="Build the ejb3 project">
+	<sequential>
+        <exec executable="ant" failonerror="false" resultproperty="buildejb3.returncode" output="${log.dir}/compileejb3.log">
+            <arg line=" -buildfile ../checkout/ejb3-4.2-testsuite/ejb3/build-test.xml"/>
+            <env key="PATH" path="/opt/jdk1.5.0_03/bin:${env.PATH}"/>
+            <env key="JAVA_HOME" path="/opt/jdk1.5.0_03"/>
+        </exec>
+        <antcall target="copylogs">
+           <param name="dest.dir" value="${log.dir}"/>
+           <param name="proj.dir" value="ejb3-4.2-testsuite"/>
+        </antcall>
+        <condition property="buildejb3.success">
+          <equals arg1="${buildejb3.returncode}" arg2="0"/>
+        </condition>
+        <fail unless="buildejb3.success">
+          Exit code: ${buildejb3.returncode}
+          See compileejb3.log in Build Artifacts for details.
+        </fail>
+        </sequential>
+    </target>
+
+    <target name="tests" depends="buildejb3" description="Runs the ejb3 tests">
+	<sequential>
+	<antcall target="kill"/>
+        <exec executable="ant" failonerror="false"  resultproperty="tests.returncode" output="${log.dir}/tests.log">
+            <arg line=" -buildfile ../checkout/ejb3-4.2-testsuite/ejb3/build-test.xml tests"/>
+            <env key="PATH" path="/opt/jdk1.5.0_03/bin:${env.PATH}"/>
+            <env key="JAVA_HOME" path="/opt/jdk1.5.0_03"/>
+        </exec>
+        <antcall target="copylogs">
+           <param name="dest.dir" value="${log.dir}"/>
+           <param name="proj.dir" value="ejb3-4.2-testsuite"/>
+        </antcall>
+        <condition property="tests.success">
+          <equals arg1="${tests.returncode}" arg2="0"/>
+        </condition>
+        <fail unless="tests.success">
+          Exit code: ${tests.returncode}
+          See tests.log in Build Artifacts for details.
+        </fail>
+        </sequential>
+    </target>
+
+    <target name="generatereports" depends="tests" description="Generates HTML reports">
+        <exec executable="ant">
+            <arg line=" -buildfile ../checkout/ejb3-4.2-testsuite/ejb3/build-test.xml tests-report-html"/>
+        </exec>
+    </target>
+
+    <target name="copyresults" depends="generatereports" description="Copies test results to the logbuild directory">
+        <mkdir dir="${log.dir}/results"/>
+        <copy todir="${log.dir}/results">
+           <fileset dir="../checkout/ejb3-4.2-testsuite/ejb3/output/reports"/>
+        </copy>
+        <copy todir="${log.dir}/results">
+           <fileset dir="../checkout/ejb3-4.2-testsuite/ejb3/output/reports/html"/>
+        </copy>
+        <delete dir="${log.dir}/results/html"/>
+        <antcall target="test-build-failure">
+            <param name="fileset.dir" value="${log.dir}/results"/>
+            <param name="fileset.includes" value="TEST-*.xml"/>
+            <param name="error.text" value="errors=&quot;0&quot;"/>
+            <param name="failure.text" value="failures=&quot;0&quot;"/>
+        </antcall>
+    </target>
+
+</project>
+




More information about the jboss-cvs-commits mailing list