-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-composer.xml
26 lines (22 loc) · 1.07 KB
/
build-composer.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by PHP Project Wizard (PPW) 1.0.4 on Sun Jul 29 11:35:39 CEST 2012 -->
<project name="skeleton_php_project" default="build" basedir=".">
<property name="source" value="src"/>
<property name="tests" value="tests"/>
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/coverage"/>
<delete dir="${basedir}/build/logs"/>
<mkdir dir="${basedir}/build/coverage"/>
<mkdir dir="${basedir}/build/logs"/>
</target>
<target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
<exec executable="${basedir}/bin/phpunit" failonerror="true" dir="${basedir}/${tests}">
</exec>
</target>
<target name="phpunit-codecoverage" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
<exec executable="bin/phpunit" failonerror="true">
<arg line="-c ${basedir}/${tests}/phpunit-codecoverage.xml.dist" />
</exec>
</target>
<target name="build" depends="clean,phpunit-codecoverage"/>
</project>