-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel O'Connor
committed
Nov 6, 2011
1 parent
42e946d
commit b08c3be
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<project name="Net_Wifi" default="build" basedir="."> | ||
<condition property="phpunit.bin" value="phpunit.bat" else="phpunit"> | ||
<os family="windows"/> | ||
</condition> | ||
|
||
<condition property="pear.bin" value="pear.bat" else="pear"> | ||
<os family="windows"/> | ||
</condition> | ||
|
||
<target name="clean" description="Clean up and create artifact directories"> | ||
<delete dir="${basedir}/lib" /> | ||
<delete dir="${basedir}/build/api"/> | ||
<delete dir="${basedir}/build/code-browser"/> | ||
<delete dir="${basedir}/build/coverage"/> | ||
<delete dir="${basedir}/build/logs"/> | ||
<delete dir="${basedir}/build/pdepend"/> | ||
<delete dir="${basedir}/build"/> | ||
|
||
<mkdir dir="${basedir}/build"/> | ||
<mkdir dir="${basedir}/build/api"/> | ||
<mkdir dir="${basedir}/build/code-browser"/> | ||
<mkdir dir="${basedir}/build/coverage"/> | ||
<mkdir dir="${basedir}/build/logs"/> | ||
<mkdir dir="${basedir}/build/pdepend"/> | ||
|
||
<exec dir="${basedir}" executable="svn"> | ||
<arg line="export https://svn.php.net/repository/pear/packages/Stream_Var/trunk lib/" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="phpunit"> | ||
<exec dir="${basedir}" executable="${phpunit.bin}" failonerror="true"> | ||
<arg line="."/> | ||
</exec> | ||
</target> | ||
|
||
<target name="package"> | ||
<exec dir="${basedir}/build" executable="${pear.bin}" failonerror="true"> | ||
<arg line="package ../package.xml"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="build" depends="clean,phpunit,package"/> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<phpunit verbose="true"> | ||
<logging> | ||
<log type="coverage-html" target="build/coverage" title="Net_Wifi" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70"/> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false" title="Net_Wifi"/> | ||
</logging> | ||
<filter> | ||
<blacklist> | ||
<directory suffix=".php">/usr/share/php</directory> | ||
<directory suffix=".php">tests/unit/</directory> | ||
</blacklist> | ||
</filter> | ||
<testsuites> | ||
<testsuite> | ||
<directory>tests</directory> | ||
<file>*Test.php</file> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<includePath>lib/</includePath> | ||
<!-- E_ALL --> | ||
<ini name="error_reporting" value="30719" /> | ||
</php> | ||
</phpunit> |