summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMarko Grönroos <magi@iki.fi>2009-03-31 12:15:01 +0000
committerMarko Grönroos <magi@iki.fi>2009-03-31 12:15:01 +0000
commited0b2bf73b4bec282fe97c0cf1b5d874ef01662e (patch)
tree7e86e616c1dddc8b7fbd61067734a7efe5fc687c /build
parent36f9a1ecc266a4b4dce41ac9690561a24651dc7e (diff)
downloadvaadin-framework-ed0b2bf73b4bec282fe97c0cf1b5d874ef01662e.tar.gz
vaadin-framework-ed0b2bf73b4bec282fe97c0cf1b5d874ef01662e.zip
Merge from versions/5.4 to versions/6.0:
Merged [7195]: A 'tests' target in build script for running tests in TeamCity. Merged [7198]: A fix for 'tests' target in build script for running tests in TeamCity. Merged [7199]: Another fix for 'tests' target in build script for running tests in TeamCity. Merged [7200]: Publish library JAR as a build artefact in TeamCity. Merged [7201]: Publish nightly build in web only if publish property set. Publish as TeamCity artefact only in the 'nightly' target. Merged [7232]: Use 'major.minor.tag' for 'nightly' version number instead of 'major.minor-tag'. Merged [7233]: Remove old gwt link in 'nightly' target, in case the link target changes. Merged [7234]: Remove old gwt link in 'nightly' target properly. Merged [7235]: Make link to gwt directory better in the nightly target. Merged [7236]: A fix for publishing nightly Jar. svn changeset:7251/svn branch:6.0
Diffstat (limited to 'build')
-rw-r--r--build/build.xml59
1 files changed, 41 insertions, 18 deletions
diff --git a/build/build.xml b/build/build.xml
index 5ae5bcf141..38f305c830 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -1374,26 +1374,24 @@
<!-- Nightly build. -->
<!-- ================================================================== -->
+ <!-- Create symlink to GWT installation directory. -->
<target name="gwt-symlink">
- <!-- We need to create a symlink to the GWT directory, because we -->
- <!-- are building automatically. -->
+
+ <!-- Optional property. -->
<property name="gwt.link.target" value="../../gwt-1.5"/>
- <!-- Create the link unless it already exists. -->
- <available file="build/gwt" property="gwt.link.available"/>
- <if>
- <not>
- <isset property="gwt.link.available"/>
- </not>
- <then>
- <echo>Creating symlink to GWT installation directory.</echo>
- <symlink link="gwt" resource="${gwt.link.target}" failonerror="false"/>
- </then>
- <else>
- <echo>Symlink to GWT installation directory already exists</echo>
- </else>
- </if>
+ <!-- Remove the old link, as the link target may have changed. -->
+ <exec executable="rm" dir="build" searchpath="true" failonerror="false">
+ <arg value="gwt"/>
+ </exec>
+ <echo>Creating symlink to GWT installation directory.</echo>
+ <exec executable="ln" dir="build" searchpath="true" failonerror="true">
+ <arg value="-s"/> <!-- Symlink. -->
+ <arg value="-f"/> <!-- Overwrite. -->
+ <arg value="${gwt.link.target}"/>
+ <arg value="gwt"/>
+ </exec>
</target>
<!-- Initialize a nightly build. -->
@@ -1416,15 +1414,22 @@
<tstamp>
<format property="nightly.date" pattern="yyyyMMdd"/>
</tstamp>
- <property name="version" value="${version.minor}-${build.tag}-${nightly.date}-c${build.number}"/>
+ <property name="version" value="${version.minor}.${build.tag}-${nightly.date}-c${build.number}"/>
+ <echo>Version will be: ${version}</echo>
<!-- Tell TeamCity the build name. Have to do it this way, because -->
<!-- this script needs to get the plain build number as a parameter. -->
<echo>##teamcity[buildNumber '${version.minor}-c${build.number}']</echo>
</target>
+ <target name="nightly-teamcity-publish">
+ <!-- Publish as a TeamCity artifact. -->
+ <echo>##teamcity[publishArtifacts '${output-dir}/WebContent/WEB-INF/lib/${lib-jar-name}']</echo>
+ </target>
+
<!-- Copies the nightly build results to the download server. -->
- <target name="nightly-install">
+ <target name="nightly-download-publish" if="nightly.publish">
+ <!-- Publish to the download server. -->
<echo>Installing ${output-dir}/WebContent/${lib-jar-name} to ${nightly.publish}</echo>
<echo>Hopefully you have permissions for the copy operation with SSH.</echo>
@@ -1436,4 +1441,22 @@
<echo>Result: ${nightly.install.scp.result}</echo>
</target>
+
+ <target name="nightly-install" depends="nightly-teamcity-publish, nightly-download-publish">
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Automated tests. -->
+ <!-- ================================================================== -->
+
+ <target name="tests">
+ <echo>##teamcity[testSuiteStarted name='com.itmill.toolkit.tests.test-framework']</echo>
+
+ <!-- A smoke test for testing the testing framework. -->
+ <echo>##teamcity[testStarted name='testingSmoketest']</echo>
+ <echo>##teamcity[testStdOut name='testingSmoketest' out='Here be some text related to the test.]</echo>
+ <echo>##teamcity[testFinished name='testingSmoketest']</echo>
+
+ <echo>##teamcity[testSuiteFinished name='com.itmill.toolkit.tests.test-framework']</echo>
+ </target>
</project>