2011-04-26 03:57:55 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2012-11-19 23:30:19 +01:00
|
|
|
<!--
|
2014-09-23 08:21:02 +02:00
|
|
|
Phing build tooling for SilverStripe releases (see phing.info).
|
2015-03-09 06:34:17 +01:00
|
|
|
Install through "pear channel-discover pear.phing.info && pear install phing/phing".
|
2014-09-23 08:21:02 +02:00
|
|
|
Most tooling is placed in a separate module, install with "composer require silverstripe/buildtools".
|
|
|
|
It is safe to remove this file for normal website operation.
|
2011-04-26 03:57:55 +02:00
|
|
|
-->
|
|
|
|
|
2012-11-19 23:30:19 +01:00
|
|
|
<project name="silverstripe-installer" default="help" phingVersion="2.4.5">
|
2011-04-26 03:57:55 +02:00
|
|
|
|
2012-11-19 23:30:19 +01:00
|
|
|
<import file="buildtools/build.xml" optional="true" />
|
2011-04-26 03:57:55 +02:00
|
|
|
|
|
|
|
<property name="basedir" value="." override="true" />
|
2012-06-22 12:13:43 +02:00
|
|
|
|
2011-04-26 03:57:55 +02:00
|
|
|
<target name="help">
|
2012-11-19 23:30:19 +01:00
|
|
|
<phingcall target="buildtools.help" />
|
2011-04-26 03:57:55 +02:00
|
|
|
</target>
|
|
|
|
|
2012-11-15 15:45:39 +01:00
|
|
|
<target name="phpunit"
|
|
|
|
description="Runs unit tests as defined through phpunix.xml. Requires the 'phpunit' binary.">
|
|
|
|
<if>
|
|
|
|
<available file="${basedir}/vendor/bin/phpunit" />
|
|
|
|
<then>
|
|
|
|
<property name="phpunit_bin" value="vendor/bin/phpunit" />
|
|
|
|
</then>
|
|
|
|
<else>
|
|
|
|
<property name="phpunit_bin" value="phpunit" />
|
|
|
|
</else>
|
|
|
|
</if>
|
|
|
|
<exec command="${phpunit_bin}" checkreturn="true" passthru="true" />
|
|
|
|
</target>
|
|
|
|
|
2012-11-14 00:47:23 +01:00
|
|
|
<target name="behat" if="basedir"
|
|
|
|
description="Runs behaviour tests through Behat, on the 'framework' and 'cms' modules (if available). Requires phpunit, composer and behat.">
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<available file="${basedir}/framework/" type="dir" />
|
|
|
|
<then>
|
|
|
|
<echo msg="Testing 'framework' module" />
|
2012-11-17 01:49:07 +01:00
|
|
|
<exec command="vendor/bin/behat --ansi @framework" checkreturn="true" passthru="true" />
|
2012-11-14 00:47:23 +01:00
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<available file="${basedir}/cms/" type="dir" />
|
|
|
|
<then>
|
|
|
|
<echo msg="Testing 'cms' module" />
|
2012-11-17 01:49:07 +01:00
|
|
|
<exec command="vendor/bin/behat --ansi @cms" checkreturn="true" passthru="true" />
|
2012-11-14 00:47:23 +01:00
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2012-07-24 04:19:14 +02:00
|
|
|
</project>
|