forked from jeremykendall/php-domain-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (37 loc) · 1.4 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<project name="PHP Domain Parser" default="build">
<property file="build.properties" />
<target name="clean" description="Clean build path">
<delete dir="${project.basedir}/build" />
<mkdir dir="${project.basedir}/build" />
<mkdir dir="${project.basedir}/build/coverage" />
<mkdir dir="${project.basedir}/build/docs" />
</target>
<target name="phpunit" description="Running unit tests">
<exec
passthru="${passthru}"
dir="${project.basedir}"
command="./vendor/bin/phpunit" />
</target>
<target name="php-cs-fixer" description="PHP Codings Standards fixer">
<exec
passthru="${passthru}"
command="./vendor/bin/php-cs-fixer fix --config-file=.php_cs --verbose" />
</target>
<target name="phpdoc" description="Generate API documentation">
<exec
passthru="${passthru}"
command="phpdoc
-d ${project.basedir}/src
-t ${project.basedir}/build/docs
--title='PHP Domain Parser'
--defaultpackagename='Pdp'
--template='responsive-twig'
--force" />
</target>
<target name="build" description="Build app">
<phingCall target="clean" />
<phingCall target="php-cs-fixer" />
<phingCall target="phpunit" />
</target>
</project>