Updated PHPUnit and APIGen

This commit is contained in:
Abel Hoogeveen 2015-05-01 20:40:10 +02:00
parent ab1ee28e40
commit 2e571c8324
2 changed files with 28 additions and 10 deletions

View File

@ -7,23 +7,25 @@
<target name="prepare">
<mkdir dir="${basedir}/build/logs" />
<mkdir dir="${basedir}/build/clover" />
<mkdir dir="${basedir}/build/phpdoc" />
</target>
<target name="phpunit">
<target name="phpdoc">
<exec dir="${basedir}" executable="php" failonerror="true">
<arg value="phpunit.phar"/>
<arg line="--configuration phpunit.xml
--log-junit ${basedir}/build/logs/phpunit.xml
--coverage-clover ${basedir}/build/logs/clover.xml
--coverage-html ${basedir}/build/clover" />
<arg value="apigen.phar"/>
<arg line="generate --source .
--exclude 'tests/*'
--exclude 'Core/System/Smarty/*'
--title 'FuzeWorks Documentation build #${buildNumber}'
--destination build/phpdoc" />
</exec>
</target>
<target name="zip">
<exec dir="${basedir}" executable="zip" failonerror="true">
<arg line="-r ${basedir}/build/fuzeworks-core.zip . -x build\* tests\*" />
<arg line="-r ${basedir}/build/fuzeworks-core.zip . -x build\* tests\* .git\*" />
</exec>
</target>
<target name="build" depends="clean,prepare,phpunit,zip" />
<target name="build" depends="clean,prepare,phpdoc,zip" />
</project>

View File

@ -1,8 +1,24 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
bootstrap="load.php">
bootstrap="load.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
mapTestClassNameToCoveredClassName="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
verbose="true">
<testsuites>
<testsuite name="FuzeWorks Core Tests">
<testsuite name="Core Functionality">
<directory>tests</directory>
</testsuite>
</testsuites>