Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (39 sloc) 1.861 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<?xml version="1.0" encoding="UTF-8"?>
<project name="start_page" basedir="." default="main">
<!-- $Id: build.xml,v 75eae3b69b79 2009/03/05 16:12:07 ladislav $ -->
    <property name="tmp" value="/tmp" />
    <property name="wsname" value="source" />
    <property name="package" value="${phing.project.name}" override="true" />
    <property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" />
    <property name="srcdir" value="./src/" override="true" />
    
    <!-- Main Target -->
    <target name="main" description="main target">
    
        <!-- Create dirs -->
        <mkdir dir="${builddir}/reports"/>
        <mkdir dir="${builddir}/reports/phpunit"/>
        <mkdir dir="${builddir}/reports/coverage"/>
    
        <!-- PHP API Documentation -->
        <phpdoc title="API Documentation"
          destdir="${builddir}/apidocs"
          sourcecode="yes"
          defaultpackagename="StartPage"
          output="HTML:Smarty:PHP">
           <fileset dir=".">
              <include name="*/*.php" />
           </fileset>
        </phpdoc>

<!-- PHP CodeSniffer -->
 <exec command="phpcs --standard=ZEND --report=checkstyle ${ws}/${wsname}/src/ > ${builddir}/reports/checkstyle.xml" escape="false" />

 <!-- PHPUnit -->
 <exec command="phpunit --log-xml ${builddir}/reports/phpunit.xml --log-pmd ${builddir}/reports/phpunit.pmd.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/ tests/AllTests.php"/>
 
 <phpunit>
  <formatter todir="${builddir}/reports/phpunit" type="xml"/>
  <batchtest>
    <fileset dir=".">
      <include name="tests/*Test*.php"/>
    </fileset>
  </batchtest>
</phpunit>
<phpunitreport infile="${builddir}/reports/phpunit/testsuites.xml" format="frames" todir="${builddir}/reports/phpunit/" />
 
    </target>
</project>
Something went wrong with that request. Please try again.