-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphp-build.xml
23 lines (22 loc) · 945 Bytes
/
php-build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<project name="php" description="" default="">
<target name="lint" description="Pass PhpLint on all .php files in ${dir}">
<phplint haltonfailure="true">
<fileset dir="${dir}">
<include name="**/*.php" />
</fileset>
</phplint>
</target>
<target name="test" description="Launch tests in ${dir} with ${configFile}">
<property name="configFile" value=""/>
<property name="args" value=""/>
<exec command="phpunit --colors --configuration ${configFile} ${args} ${dir}" passthru="true"/>
</target>
<target name="test:stats" description="Launch tests + Generate reports">
<mkdir dir="${build.dir}" />
<phingcall target="test">
<property name="args"
value="--coverage-html ${build.dir}/coverage --log-junit ${build.dir}/junit.xml" />
</phingcall>
</target>
</project>