forked from lh/OpenEyes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
71 lines (62 loc) · 2.64 KB
/
build.xml
File metadata and controls
71 lines (62 loc) · 2.64 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<project name="Open Eyes" default="build">
<target name="clean">
<delete dir="${basedir}/build" />
</target>
<target name="prepare">
<mkdir dir="${basedir}/build/logs" />
<mkdir dir="${basedir}/build/codebrowser" />
<mkdir dir="${basedir}/build/coverage" />
<mkdir dir="${basedir}/build/cpd" />
<mkdir dir="${basedir}/build/dependencies" />
</target>
<target name="phpcs">
<exec dir="${basedir}" executable="phpcs" failonerror="false" output="/dev/null">
<arg line="--extensions=php --ignore=build/*,tests/* --standard=Zend --tab-width=4 --report=checkstyle --report-file=${basedir}/build/logs/checkstyle.xml ." />
</exec>
</target>
<target name="phpmd">
<exec dir="${basedir}" executable="phpmd" failonerror="false">
<arg line=". xml codesize --reportfile ${basedir}/build/logs/pmd.xml" />
</exec>
</target>
<target name="phpcpd">
<exec dir="${basedir}" executable="phpcpd" failonerror="false">
<arg line="--log-pmd=${basedir}/build/logs/pmd-cpd.xml
--exclude=build
--exclude=tests
." />
</exec>
<exec dir="${basedir}/build/logs" executable="xsltproc" failonerror="false" output="${basedir}/build/cpd/index.html">
<arg line="cpd.xsl ${basedir}/build/logs/pmd-cpd.xml" />
</exec>
</target>
<target name="pdepend">
<exec dir="${basedir}" executable="pdepend" failonerror="false">
<arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml
--optimization=best
--exclude=build,tests
." />
</exec>
</target>
<target name="phpcb">
<exec dir="${basedir}" executable="phpcb" failonerror="false">
<arg line="--log ${basedir}/build/logs --source ${basedir} --output ${basedir}/build/codebrowser" />
</exec>
</target>
<target name="phpunit">
<exec dir="${basedir}/tests" executable="phpunit" failonerror="true">
<arg line="--log-junit ${basedir}/build/logs/phpunit.xml
--coverage-clover ${basedir}/build/logs/clover.xml
--coverage-html ${basedir}/build/coverage" />
</exec>
</target>
<target name="parallel">
<parallel>
<antcall target="phpcs" />
<antcall target="phpmd" />
<antcall target="phpcpd" />
<antcall target="pdepend" />
</parallel>
</target>
<target name="build" depends="clean,prepare,parallel,phpunit,phpcb" />
</project>