-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
57 lines (48 loc) · 1.58 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<project name="Carica PhpCss" default="build">
<property name="buildPath" value="${project.basedir}/build" />
<target name="build" depends="documentation">
</target>
<target name="documentation" depends="phploc,phpmd,phpunit,phpdox">
</target>
<target name="prepare">
<echo msg="Making directory ./build" />
<mkdir dir="${buildPath}" />
<mkdir dir="${buildPath}/logs" />
<mkdir dir="${buildPath}/coverage" />
</target>
<target name="phpunit" depends="prepare">
<exec executable="php" passthru="true">
<arg file="tools/phpunit.phar"/>
<arg value="--coverage-xml"/>
<arg file="${buildPath}/coverage/xml"/>
<arg value="--coverage-html"/>
<arg file="${buildPath}/coverage/html"/>
<arg value="-c"/>
<arg file="phpunit.xml.dist"/>
</exec>
</target>
<target name="phpdox" depends="prepare">
<exec executable="php" passthru="true">
<arg file="tools/phpdox.phar"/>
</exec>
</target>
<target name="phpmd" depends="prepare">
<exec executable="php" passthru="true">
<arg file="tools/phpmd.phar"/>
<arg path="./src"/>
<arg value="xml"/>
<arg value="codesize,design,unusedcode"/>
<arg value="--reportfile"/>
<arg file="${buildPath}/logs/phpmd.xml"/>
</exec>
</target>
<target name="phploc" depends="prepare">
<exec executable="php" passthru="true">
<arg file="tools/phploc.phar"/>
<arg value="--log-xml"/>
<arg file="${buildPath}/logs/phploc.xml"/>
<arg path="./src"/>
</exec>
</target>
</project>