1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-12 11:30:49 +01:00

Adding a Phing build file that can be used to initialize git submodules and to copy the phpunit.xml.dist file to phpunit.xml

This commit is contained in:
Michael Dowling 2011-04-12 23:31:21 -05:00
parent 7c463240f0
commit e56029f7f5

31
build.xml Normal file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="guzzle" default="init">
<!-- ============================================ -->
<!-- Target: init-git -->
<!-- ============================================ -->
<target name="init-git">
<echo msg="Initializing git submodules" />
<exec command="git submodule init" />
<exec command="git submodule update" />
</target>
<!-- ============================================ -->
<!-- Target: init-test -->
<!-- ============================================ -->
<target name="init-test" depends="init-git">
<echo msg="Preparing for PHPUnit testing" />
<echo msg="Copying ./phpunit.xml.dist to ./phpunit.xml" />
<copy file="./phpunit.xml.dist" tofile="./phpunit.xml" />
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: int -->
<!-- ============================================ -->
<target name="init">
<phingcall target="init-git" />
<phingcall target="init-test" />
</target>
</project>