Skip to content

Instantly share code, notes, and snippets.

@tikolakin
Created May 29, 2014 09:42
Show Gist options
  • Save tikolakin/9e5f54237712b94a5a4f to your computer and use it in GitHub Desktop.
Save tikolakin/9e5f54237712b94a5a4f to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<project name="ci-phing-behat-test" default="dev">
<!-- load variable definitions -->
<property file="build.properties"/>
<property name="behat.basedir" value="${project.basedir}/../test"/>
<!-- define custom tasks and types -->
<typedef name="args" classname="phing.behat.types.BehatArguments"/>
<taskdef name="behat" classname="phing.behat.tasks.BehatTask"/>
<!-- create timestamp -->
<tstamp>
<format property="build.time" pattern="%Y-%m-%d %H:%I:%S"/>
</tstamp>
<echo msg="PHING build on ${project.name} at ${build.time} on ${host.name}"/>
<target name="dev" description="Builds and deploys a development build">
<behat featuresDir="${behat.basedir}/features" features="echo"
executable="${behat.basedir}/bin/behat"
config="${behat.basedir}/behat.yml"
htmlOutput="${project.basedir}/behat.html">
<!-- specify arbitrary arguments like this: -->
<!--<arguments>
<argument cmd="-arbitrary"/>
</arguments>-->
</behat>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment