Skip to content

Commit 4ac1a08

Browse files
committed
Updates phing build file
1 parent 814da4d commit 4ac1a08

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

build.xml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,40 @@
33

44
<property file="build.properties" />
55

6+
<target name="clean" description="Clean build path">
7+
<delete dir="${project.basedir}/build" />
8+
<mkdir dir="${project.basedir}/build" />
9+
<mkdir dir="${project.basedir}/build/coverage" />
10+
<mkdir dir="${project.basedir}/build/docs" />
11+
</target>
12+
613
<target name="phpunit" description="Running unit tests">
714
<exec
815
passthru="${passthru}"
916
dir="${project.basedir}"
10-
command="phpunit" />
17+
command="phpunit" />
1118
</target>
1219

1320
<target name="php-cs-fixer" description="PHP Codings Standards fixer">
1421
<exec
1522
passthru="${passthru}"
16-
command="php-cs-fixer --verbose fix library/" />
23+
command="php-cs-fixer --verbose fix" />
1724
</target>
1825

1926
<target name="phpdoc" description="Generate API documentation">
2027
<exec
2128
passthru="${passthru}"
2229
command="phpdoc
23-
-d ${project.basedir}/library
24-
-t ${project.basedir}/docs
25-
--title='PHP Domain Parser'
26-
--defaultpackagename='Pdp'
27-
--force" />
30+
-d ${project.basedir}/src
31+
-t ${project.basedir}/build/docs
32+
--title='PHP Domain Parser'
33+
--defaultpackagename='Pdp'
34+
--template='responsive-twig'
35+
--force" />
2836
</target>
29-
37+
3038
<target name="build" description="Build app">
39+
<phingCall target="clean" />
3140
<phingCall target="php-cs-fixer" />
3241
<phingCall target="phpunit" />
3342
<phingCall target="phpdoc" />

0 commit comments

Comments
 (0)