Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 56cbde9d67
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (47 sloc) 2.11 kB
<project name="selenium">
<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">
<condition property="rake.executable" value="rake.bat">
<os family="windows"/>
</condition>
<property name="rake.executable" value="rake"/>
<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"/>
<property name="rake.executable" value="rake"/>
<exec dir="." executable="${rake.executable}" resultproperty="test.command.result" failonerror="false">
<arg value="test:maven_build"/>
<env key="HEADLESS_TEST_MODE" value="${headless}"/>
</exec>
<echo>++++++++Result ${test.condition.result}</echo>
<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=shutDown" 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>
Jump to Line
Something went wrong with that request. Please try again.