Created
September 30, 2015 01:17
-
-
Save marabesi/b3653f7dd290c6396b2d to your computer and use it in GitHub Desktop.
Simple build file to run with Phing within three targets
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
<?xml version="1.0" encoding="utf-8"?> | |
<project name="First Example" description="Clone, phpunit" default="phpunittests"> | |
<property name="appdir" value="."/> | |
<property name="repodir" value="./app"/> | |
<property name="testdir" value="./app/tests"/> | |
<property name="repo" value="https://github.com/marabesi/laravel-pagseguro.git" /> | |
<target name="clone"> | |
<echo msg="Cloning repository ${repo} please wait"/> | |
<gitclone repository="${repo}" targetPath="${appdir}/app"/> | |
</target> | |
<target name="composerupdate" depends="clone"> | |
<composer composer="./composer.phar" command="install"> | |
<arg value="-d"/> | |
<arg path="${repodir}" /> | |
</composer> | |
</target> | |
<target name="phpunittests" depends="clone, composerupdate"> | |
<phpunit pharlocation="${appdir}/phpunit.phar" | |
codecoverage="false" | |
bootstrap="${testdir}/bootstrap.php" | |
haltonfailure="true" | |
printsummary="true"> | |
<batchtest> | |
<fileset dir="${testdir}"> | |
<include name="**/*Test.php"/> | |
</fileset> | |
</batchtest> | |
</phpunit> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment