diff options
author | Jeff Chan <jefftchan@gmail.com> | 2014-03-14 03:27:15 +0400 |
---|---|---|
committer | Jeff Chan <jefftchan@gmail.com> | 2014-03-14 05:10:15 +0400 |
commit | 0bfb660ad56eb48ebaf7129d6bd9f1741f96a384 (patch) | |
tree | 4efec0db2b3a3e72bed754d82734244d0d09e44d /build.xml | |
parent | ad931a1c05ae9436d7edb72cc88ab9942c8f81e3 (diff) |
Add HHVM-specific phpunit configuration
- Up the timeout
- No selenium testing
- No coverage
Also update Travis and build.xml to support it
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -5,6 +5,8 @@ <property name="source_comma_sep" value="."/> <property environment="env"/> <property name="env.PHPUNIT_XML" value="phpunit.xml.dist"/> + <property name="env.PHPUNIT_XML_NOCOVERAGE" value="phpunit.xml.nocoverage"/> + <property name="env.PHPUNIT_XML_HHVM" value="phpunit.xml.hhvm"/> <property name="env.PHPUNIT_ARGS" value=""/> <target name="clean" description="Clean up and create artifact directories"> @@ -29,7 +31,13 @@ <target name="phpunit-nocoverage" description="Run unit tests using PHPUnit and generates junit.xml"> <exec executable="phpunit" failonerror="true"> - <arg line="--configuration phpunit.xml.nocoverage ${env.PHPUNIT_ARGS}"/> + <arg line="--configuration ${env.PHPUNIT_XML_NOCOVERAGE} ${env.PHPUNIT_ARGS}"/> + </exec> + </target> + + <target name="phpunit-hhvm" description="Run unit tests using PHPUnit with HHVM specific config"> + <exec executable="phpunit" failonerror="true"> + <arg line="--configuration ${env.PHPUNIT_XML_HHVM} ${env.PHPUNIT_ARGS}"/> </exec> </target> |