forked from matgou/GorgLdapOrmBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
70 lines (61 loc) · 3.02 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
58
59
60
61
62
63
64
65
66
67
68
69
70
<project name="gramApi" 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" />
<mkdir dir="${basedir}/build/phpmd" />
</target>
<target name="phpcs">
<exec dir="${basedir}" executable="phpcs" failonerror="false" output="/dev/null">
<arg line="--extensions=php --ignore=build,vendor,Tests --standard=Symfony2 --tab-width=4 --report=checkstyle --report-file=${basedir}/build/logs/checkstyle.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 vendor --exclude Tests ." />
</exec>
<exec dir="${basedir}/build/logs" executable="xsltproc" failonerror="false" output="${basedir}/build/cpd/index.html">
<arg line="${basedir}/cpd.xsl ${basedir}/build/logs/pmd-cpd.xml" />
</exec>
</target>
<target name="phpmd">
<exec dir="${basedir}" executable="phpmd" failonerror="false">
<arg line="--exclude build,vendor,Tests --reportfile build/phpmd/index.html . html codesize,unusedcode,naming" />
</exec>
</target>
<target name="pdepend">
<exec dir="${basedir}" executable="pdepend" failonerror="false">
<arg line="--jdepend-xml=build/logs/jdepend.xml
--jdepend-chart=build/dependencies/jdepend.svg
--overview-pyramid=build/dependencies/pyramid.svg
--ignore=build,vendor,Tests
." />
</exec>
<exec dir="${basedir}/build/dependencies" executable="xsltproc" failonerror="false" output="${basedir}/build/dependencies/index.html">
<arg line="${basedir}/pdepend.xsl ${basedir}/build/logs/jdepend.xml" />
</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}" executable="phpunit" failonerror="true">
<arg line="-c . --log-junit ${basedir}/build/logs/phpunit.xml
--coverage-clover ${basedir}/build/logs/clover.xml
--coverage-html ${basedir}/build/coverage " />
</exec>
</target>
<target name="documentation">
<exec dir="${basedir}" executable="phpdoc" failonerror="true">
<arg line=" -d . -i Tests/,vendor/,build -t build/docs" />
</exec>
</target>
<target name="build" depends="clean,prepare,phpcs,phpcpd,pdepend,phpcb,phpmd,phpunit,documentation" />
</project>