-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.build.xml
25 lines (21 loc) · 953 Bytes
/
local.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
24
25
<project name="laradic-support">
<target name="build" depends="phpcbf,phpunit"/>
<target name="phpcbf" description="Fixes coding standard violations using PHP_CodeSniffer Fixer">
<exec executable="${tools.dir}phpcbf${tools.ext}" logoutput="true">
<arg value="--tabWidth=4"/>
<arg value="--standard=PSR2"/>
<arg value="--extensions=php"/>
<arg value="--ignore=autoload.php"/>
<arg path="${project.basedir}/src"/>
<arg path="${project.basedir}/tests"/>
</exec>
</target>
<target name="phpunit" description="Run unit tests with PHPUnit">
<exec executable="${tools.dir}phpunit${tools.ext}" logoutput="true">
<arg value="--configuration"/>
<arg path="${project.basedir}/phpunit.xml"/>
<arg value="--bootstrap"/>
<arg path="${vendor.dir}/autoload.php"/>
</exec>
</target>
</project>