summaryrefslogtreecommitdiffstats
path: root/uitest/test.xml
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-09-30 14:45:43 +0300
committerVaadin Code Review <review@vaadin.com>2013-10-02 08:05:35 +0000
commitd0e604f6b509767c46ffe0fd6765cf23535f593e (patch)
tree432c432bc6c3efd505e90de9c2df7c1be40b25f9 /uitest/test.xml
parent600f5f3238ecca22a8e7890d0656b0a23bd7dbba (diff)
downloadvaadin-framework-d0e604f6b509767c46ffe0fd6765cf23535f593e.tar.gz
vaadin-framework-d0e604f6b509767c46ffe0fd6765cf23535f593e.zip
Only print testbench failure TeamCity messages when running in TC
Change-Id: Ifa04ce512743bc8ccddea0bdca7b82cceaff150e
Diffstat (limited to 'uitest/test.xml')
-rw-r--r--uitest/test.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/uitest/test.xml b/uitest/test.xml
index 88b5238c09..c534d676b9 100644
--- a/uitest/test.xml
+++ b/uitest/test.xml
@@ -134,12 +134,18 @@
</batchtest>
</junit>
- <!-- Have teamcity publish each test error artifact immediatly if there are any -->
- <basename property="basename" file="${target}" suffix="java" />
- <echo>##teamcity[publishArtifacts '${com.vaadin.testbench.screenshot.directory}/errors/${basename}* => screenshot-errors']</echo>
+ <antcall target="notify-teamcity-of-build-artifact">
+ <param name="file" value="${target}" />
+ </antcall>
</target>
+ <!-- Have teamcity publish each test error artifact immediatly if there are any -->
+ <target name="notify-teamcity-of-build-artifact" if="teamcity.version">
+ <basename property="basename" file="${file}" suffix="java" />
+ <echo>##teamcity[publishArtifacts '${com.vaadin.testbench.screenshot.directory}/errors/${basename}* => screenshot-errors']</echo>
+ </target>
+
<!-- Remove temporary source and compiled java files -->
<target name="remove-temp-testclasses">
<delete failonerror="false">