Location: PHPKode > projects > Xinc - Continuous Integration for PHP > Xinc-2.0.1/examples/SimpleProject/build.tpl.xml
<?xml version="1.0"?>
<project name="Simple Project Build File" basedir="@EXAMPLE_DIR@/SimpleProject" default="build">
    <property name="report.dir" value="${project.basedir}/report"/>
    <target name="build" depends="prepare, test, tar, generate-report">
        
    </target>
    <target name="prepare">
    <mkdir dir="${report.dir}"/>
    </target>
    <target name="tar">
    	<tar destfile="${project.basedir}/release-${xinc.buildlabel}.tar.gz" compression="gzip">
			 <fileset dir=".">
				 <include name="index.php" />
			 	 <include name="Page.php" />
			 </fileset>
			</tar>
    </target>
    <target name="test">
        <phpunit haltonfailure="true" printsummary="true">
            <batchtest>
                <fileset dir=".">
                     <include name="*Test.php"/>
                </fileset>
            </batchtest>
            <formatter type="xml" todir="${report.dir}" outfile="logfile.xml"/>
        </phpunit>
    </target>
    <target name="generate-report">
  		<phpunit2report infile="${report.dir}/logfile.xml" styledir="resources/xsl" todir="report" format="noframes"/>
  	</target>
</project>
Return current item: Xinc - Continuous Integration for PHP