This repository was archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathlocal.build.xml
More file actions
42 lines (35 loc) · 1.49 KB
/
local.build.xml
File metadata and controls
42 lines (35 loc) · 1.49 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
<!--~
~ Part of the Codex Project packages.
~
~ License and copyright information bundled with this package in the LICENSE file.
~
~ @author Robin Radic
~ @copyright Copyright 2017 (c) Codex Project
~ @license http://codex-project.ninja/license The MIT License
-->
<project name="laradic/assets">
<target name="build" depends="phpcbf,phpunit,phpdoc"/>
<target name="phpcbf" description="Fixes coding standard violations using PHP_CodeSniffer Fixer">
<exec executable="${tools.dir}phpcbf${tools.ext}" logoutput="true" passthru="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" passthru="true">
<arg value="--configuration"/>
<arg path="${project.basedir}/phpunit.xml"/>
</exec>
</target>
<target name="phpdoc" description="Generate phpdoc structure xml and move into docs folder">
<exec executable="vendor/bin/phpdoc" dir="${project.basedir}" logoutput="true" passthru="true">
<arg line="-t phpdoc"/>
<arg line="-d src"/>
<arg line="--template=xml"/>
</exec>
</target>
</project>