1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Setting up builds to run from build.eclipse.org.

This commit is contained in:
Doug Schaefer 2007-06-11 20:51:31 +00:00
parent c261e3084b
commit 48c242f965

View file

@ -5,8 +5,7 @@
</target>
<target name="build" depends="zips,test"/>
<target name="nightly" depends="tag,zips,test,copy"/>
<target name="cdtbuild" depends="tag,zips,test,upload"/>
<target name="nightly" depends="tag,zips,test,copy,mail"/>
<target name="init">
<touch file="${user.home}/.cvspass" />
@ -24,11 +23,9 @@
<property name="buildType" value="I" />
<property name="buildId" value="${buildType}${timestamp}"/>
<property name="zipsdir" value="${buildDirectory}/${buildType}.${buildId}"/>
<property name="milestonedir" value="${buildDirectory}/${milestone}"/>
<property name="eclipseTest" value="org.eclipse.test_3.2.0"/>
<property name="messagefile" value="message.in"/>
<property name="mailto" value="cdt-test-dev@eclipse.org"/>
<property name="remotedir" value="dschaefer@dev.eclipse.org:cdt/builds/${branchVersion}"/>
<property name="mailto" value="dschaefer@qnx.com"/>
<property name="eclipseRoot" value="/cvsroot/eclipse"/>
<property name="baseos" value="${osgi.os}"/>
<property name="basews" value="${osgi.ws}"/>
@ -134,27 +131,6 @@
out="${zipsdir}/junits.html"/>
</target>
<target name="upload" depends="init" unless="hasErrors">
<exec dir="${buildDirectory}" executable="scp">
<arg line="${remotedir}/index.html index.html"/>
</exec>
<replace file="${buildDirectory}/index.html">
<replacetoken><![CDATA[ <!-- add here -->]]></replacetoken>
<replacevalue><![CDATA[ <li><a href="@buildType@.@buildId@/index.html">@buildId@</a></li>
<!-- add here -->]]></replacevalue>
</replace>
<replace file="${buildDirectory}/index.html">
<replacefilter token="@buildType@" value="${buildType}"/>
<replacefilter token="@buildId@" value="${buildId}"/>
</replace>
<exec dir="${buildDirectory}" executable="scp">
<arg line="index.html ${remotedir}/index.html"/>
</exec>
<exec dir="${buildDirectory}" executable="scp">
<arg line="-r ${buildType}.${buildId} ${remotedir}"/>
</exec>
</target>
<target name="copy" depends="init" unless="hasErrors">
<property name="copyToDir" value="/home/www/tools/cdt/builds/${branchVersion}"/>
<replace file="${copyToDir}/index.html">