Skip to content
Newer
Older
100644 115 lines (100 sloc) 3.9 KB
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <project name="joomla-platform" default="build" basedir=".">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 2, 2012
4 <property name="source" value="libraries" />
5 <property name="joomlasource" value="libraries/joomla,libraries/platform.php,libraries/loader.php,libraries/import.php" />
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
6
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
7 <target name="clean" description="Clean up and create artifact directories">
8 <delete dir="${basedir}/build/api" />
9 <delete dir="${basedir}/build/code-browser" />
10 <delete dir="${basedir}/build/coverage" />
11 <delete dir="${basedir}/build/logs" />
12 <delete dir="${basedir}/build/pdepend" />
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
13
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
14 <mkdir dir="${basedir}/build/api" />
15 <mkdir dir="${basedir}/build/code-browser" />
16 <mkdir dir="${basedir}/build/coverage" />
17 <mkdir dir="${basedir}/build/logs" />
18 <mkdir dir="${basedir}/build/pdepend" />
19 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
20
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
21 <target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
22 <exec executable="phpunit" />
23 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
24
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
25 <target name="phpunit-legacy" description="Run legacy tests using PHPUnit and generates junit.legacy.xml and clover.legacy.xml">
26 <exec executable="phpunit">
27 <arg value="-c legacy.xml.dist" />
28 </exec>
29 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
30
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
31 <target name="parallelTasks" description="Run the pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads.">
32 <parallel threadCount="2">
33 <sequential>
34 <antcall target="pdepend" />
35 <antcall target="phpmd" />
36 </sequential>
37 <antcall target="phpcpd" />
38 <antcall target="phpcs" />
39 <antcall target="phpdoc" />
40 <antcall target="phploc" />
41 </parallel>
42 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
43
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
44 <target name="pdepend" description="Generate jdepend.xml and software metrics charts using PHP_Depend">
45 <exec executable="pdepend">
46 <arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" />
47 <arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" />
48 <arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" />
49 <arg path="${source}" />
50 </exec>
51 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
52
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
53 <target name="phpmd" description="Generate pmd.xml using PHPMD">
54 <exec executable="phpmd">
55 <arg path="${joomlasource}" />
56 <arg value="xml" />
57 <arg value="${basedir}/build/phpmd.xml" />
58 <arg value="--reportfile" />
59 <arg value="${basedir}/build/logs/pmd.xml" />
60 </exec>
61 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
62
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
63 <target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD">
64 <exec executable="phpcpd">
65 <arg value="--log-pmd" />
66 <arg value="${basedir}/build/logs/pmd-cpd.xml" />
67 <arg path="${source}/joomla" />
68 </exec>
69 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
70
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
71 <target name="phploc" description="Generate phploc.csv">
72 <exec executable="phploc">
73 <arg value="--log-csv" />
74 <arg value="${basedir}/build/logs/phploc.csv" />
75 <arg path="${source}/joomla" />
76 </exec>
77 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
78
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
79 <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
80 <exec executable="phpcs">
81 <arg value="--report=checkstyle" />
82 <arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
83 <arg value="--standard=${basedir}/build/phpcs/Joomla" />
84 <arg value="--ignore=${source}/phpmailer,${source}/phputf8,${source}/simplepie/,${source}/config.example.php" />
85 <arg path="${source}" />
86 </exec>
87 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
88
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
89 <target name="phpdoc" description="Generate API documentation using PHPDocumentor">
90 <exec executable="phpdox">
91 <arg value="-c" />
92 <arg path="${source}" />
93 <arg value="-d" />
94 <arg path="${basedir}/build/api" />
95 <arg value="-x" />
96 <arg path="${basedir}/build/docs" />
97 <arg value="-g" />
98 <arg value="html" />
99 </exec>
100 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
101
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored Apr 3, 2012
102 <target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser">
103 <exec executable="phpcb">
104 <arg value="--log" />
105 <arg path="${basedir}/build/logs" />
106 <arg value="--source" />
107 <arg path="${source}" />
108 <arg value="--output" />
109 <arg path="${basedir}/build/code-browser" />
110 </exec>
111 </target>
112
113 <target name="build" depends="clean,phpunit,phpunit-legacy,parallelTasks,phpcb" />
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored Jun 20, 2011
114 </project>
Something went wrong with that request. Please try again.