-
Notifications
You must be signed in to change notification settings - Fork 47
/
build.xml
51 lines (45 loc) · 1.94 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<project name="selenium">
<condition property="rake.executable" value="rake.bat">
<os family="windows"/>
</condition>
<property name="rake.executable" value="rake"/>
<target name="generate-sources">
<mkdir dir="target"/>
<xslt in="target/iedoc.xml" out="lib/selenium/client/generated_driver.rb" style="iedoc2ruby.xml"/>
</target>
<target name="doc">
<exec dir="." executable="${rake.executable}" failonerror="true">
<arg value="rdoc"/>
</exec>
</target>
<target name="test">
<echo>${selenium-server}</echo>
<java jar="${selenium-server}" fork="true" spawn="true"/>
<sleep seconds="20"/>
<exec dir="." executable="${rake.executable}" resultproperty="test.command.result" failonerror="false">
<arg value="test:maven_build"/>
<env key="HEADLESS_TEST_MODE" value="${headless}"/>
</exec>
<condition property="build.failed">
<not>
<equals arg1="0" arg2="${test.command.result}"/>
</not>
</condition>
<get taskname="selenium-shutdown" src="http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer" dest="target/shutdown-result.txt" ignoreerrors="true" />
<sleep seconds="20"/>
<fail if="build.failed" message="ruby tests failed!"/>
</target>
<target name="dist" depends="generate-sources, doc">
<property name="project.version" value="UNKNOWNVERSION" />
<property name="ruby.release" value="selenium-ruby-client-driver-${project.version}"/>
<zip zipfile="target/${ruby.release}.zip">
<zipfileset dir="." prefix="${ruby.release}">
<include name="*.rb" />
<include name="doc/**" />
</zipfileset>
</zip>
<zip zipfile="target/${ruby.release}-doc.zip">
<zipfileset dir="doc" prefix="ruby" />
</zip>
</target>
</project>