forked from LiveCarta/PayPal-PHP-SDK
Updating ant targets for cross platform support
This commit is contained in:
12
build.xml
12
build.xml
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project name="paypal-rest-sdk-php" basedir="." default="all">
|
<project name="paypal-rest-sdk-php" basedir="." default="all">
|
||||||
|
|
||||||
|
<property name="basedir" value="." />
|
||||||
<property name="release.dir" value="${basedir}/release" />
|
<property name="release.dir" value="${basedir}/release" />
|
||||||
<property name="output.dir" value="${basedir}/build" />
|
<property name="output.dir" value="${basedir}/build" />
|
||||||
<property name="phplint.out" value="${output.dir}/phplint.txt" />
|
<property name="phplint.out" value="${output.dir}/phplint.txt" />
|
||||||
@@ -9,9 +10,6 @@
|
|||||||
<property name="coverage.out" value="${coverage.dir}/junit.xml" />
|
<property name="coverage.out" value="${coverage.dir}/junit.xml" />
|
||||||
<property name="clover.out" value="${coverage.dir}/clover.xml" />
|
<property name="clover.out" value="${coverage.dir}/clover.xml" />
|
||||||
<property name="test.dir" value="${output.dir}/test" />
|
<property name="test.dir" value="${output.dir}/test" />
|
||||||
<property name="coverage.out" value="${coverage.dir}/junit.xml" />
|
|
||||||
<property name="clover.out" value="${coverage.dir}/clover.xml" />
|
|
||||||
|
|
||||||
|
|
||||||
<fileset id="src.files" dir="${basedir}/lib" includes="**/*.php" />
|
<fileset id="src.files" dir="${basedir}/lib" includes="**/*.php" />
|
||||||
|
|
||||||
@@ -38,12 +36,12 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="phploc">
|
<target name="phploc">
|
||||||
<exec command="phploc.bat --log-xml ${phploc.out} ." dir="${basedir}/lib" />
|
<exec command="phploc --log-xml ${phploc.out} ." dir="${basedir}/lib" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="coverage">
|
<target name="coverage">
|
||||||
<mkdir dir="${output.dir}/coverage"/>
|
<mkdir dir="${output.dir}/coverage"/>
|
||||||
<exec command="phpunit.bat --coverage-html=${coverage.dir} --coverage-clover=${clover.out} --log-junit=${coverage.out} --exclude-group=PayPal\\Api\\*" />
|
<exec command="phpunit --coverage-html=${coverage.dir} --coverage-clover=${clover.out} --log-junit=${coverage.out} --exclude-group=PayPal\\Api\\*" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" description="Deletes build artifacts">
|
<target name="clean" description="Deletes build artifacts">
|
||||||
@@ -52,13 +50,13 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test" description="Runs test cases">
|
<target name="test" description="Runs test cases">
|
||||||
<exec command="phpunit.bat --testdox-html=${test.dir}/testdox.html --log-junit=${test.dir}/junit.xml"/>
|
<exec command="phpunit --testdox-html=${test.dir}/testdox.html --log-junit=${test.dir}/junit.xml"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Requires phing -->
|
<!-- Requires phing -->
|
||||||
<target name="convert-test-report" >
|
<target name="convert-test-report" >
|
||||||
<mkdir dir="build/test/report"/>
|
<mkdir dir="build/test/report"/>
|
||||||
<phpunitreport infile="build/test/junit.xml"
|
<phpunitreport infile="${coverage.out}"
|
||||||
format="frames"
|
format="frames"
|
||||||
todir="build/test/report" />
|
todir="build/test/report" />
|
||||||
</target>
|
</target>
|
||||||
|
|||||||
Reference in New Issue
Block a user