mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Added phing support
This commit is contained in:
parent
736856fbd7
commit
738d9dbff6
35
build.xml
Normal file
35
build.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
# phing installation
|
||||
sudo pear channel-discover pear.phing.info
|
||||
sudo pear install phing/phing
|
||||
sudo pear install pear/VersionControl_Git-0.4.4
|
||||
-->
|
||||
|
||||
<project name="silverstripe-installer" default="help" phingVersion="2.4.5">
|
||||
|
||||
<!-- Install with "composer require silverstripe/buildtools" -->
|
||||
<import file="buildtools/build.xml" optional="true" />
|
||||
|
||||
<property name="basedir" value="." override="true" />
|
||||
|
||||
<target name="help">
|
||||
<phingcall target="buildtools.help" />
|
||||
</target>
|
||||
|
||||
<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>
|
||||
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user