diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-20 16:52:03 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-20 16:52:03 +0200 |
commit | 5dea687c29b89d792e9653d6e5f3c64cddb26b04 (patch) | |
tree | e6201ff8895dd609fe0625289e13944b3eb3614a /build.xml | |
parent | 3fdbb2cbfe778fcf48c61bb9fe40d4ac85f8004f (diff) |
Enable travis for php 5.3, 5.4, 5.5; enabled coveralls
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -45,6 +45,15 @@ </fileset> <!-- + Only php source files in framework + --> + <fileset dir="." id="framework-php"> + <exclude name="**/pradolite.php"/> + <exclude name="**/prado-cli.php"/> + <include name="framework/**/*.php"/> + </fileset> + + <!-- Surrounding files --> <fileset dir="." id="misc"> @@ -255,13 +264,17 @@ <target name="test" description="Running unit tests"> <delete dir="${build.test.dir}"/> <mkdir dir="${build.test.dir}"/> - <phpunit codecoverage="false" haltonfailure="false" haltonerror="false" printsummary="true" bootstrap="./tests/unit/bootstrap.php"> + <coverage-setup database="${build.test.dir}/coverage.db"> + <fileset refid="framework-php" /> + </coverage-setup> + <phpunit codecoverage="true" haltonfailure="false" haltonerror="false" printsummary="false" bootstrap="./tests/unit/bootstrap.php"> <batchtest> <fileset dir="tests/unit"> <include name="**/*Test.php"/> </fileset> </batchtest> <formatter type="xml" todir="${build.test.dir}" outfile="unit-tests.xml"/> + <formatter type="clover" todir="${build.test.dir}" outfile="clover.xml"/> </phpunit> <phpunitreporttask infile="${build.test.dir}/unit-tests.xml" format="frames" todir="${build.test.dir}"/> </target> |