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:
parent
7c463240f0
commit
e56029f7f5
31
build.xml
Normal file
31
build.xml
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user