Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 135 lines (116 sloc) 4.581 kb
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
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
4 <property name="source" value="libraries" />
0ff0d99 @realityking Add the legacy and compat folders to the phpmd check.
realityking authored
5 <property name="joomlasource" value="libraries/joomla,libraries/legacy,libraries/compat,libraries/platform.php,libraries/loader.php,libraries/import.php" />
f362e51 @LouisLandry Removing the unnecessary config.example.php file.
LouisLandry authored
6
95c1137 Fixing build script so that the nightly works again and targets can be r...
Ian MacLennan authored
7 <condition property="script-suffix" value=".bat" else="">
8 <os family="windows" />
9 </condition>
f362e51 @LouisLandry Removing the unnecessary config.example.php file.
LouisLandry authored
10
95c1137 Fixing build script so that the nightly works again and targets can be r...
Ian MacLennan authored
11 <condition property="script-null" value="NUL" else="/dev/null">
12 <os family="windows" />
13 </condition>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
14
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
15 <target name="clean" description="Clean up and create artifact directories">
16 <delete dir="${basedir}/build/api" />
17 <delete dir="${basedir}/build/code-browser" />
18 <delete dir="${basedir}/build/coverage" />
19 <delete dir="${basedir}/build/logs" />
20 <delete dir="${basedir}/build/pdepend" />
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
21
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
22 <mkdir dir="${basedir}/build/api" />
23 <mkdir dir="${basedir}/build/code-browser" />
24 <mkdir dir="${basedir}/build/coverage" />
25 <mkdir dir="${basedir}/build/logs" />
26 <mkdir dir="${basedir}/build/pdepend" />
27 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
28
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
29 <target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
30 <exec executable="phpunit${script-suffix}" />
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
31 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
32
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
33 <target name="phpunit-legacy" description="Run legacy tests using PHPUnit and generates junit.legacy.xml and clover.legacy.xml">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
34 <exec executable="phpunit${script-suffix}">
65ceccc @LouisLandry Fixing unit tests after re-organization.
LouisLandry authored
35 <arg value="-c" />
36 <arg value="legacy.xml.dist" />
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
37 </exec>
38 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
39
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
40 <target name="parallelTasks" description="Run the pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads.">
41 <parallel threadCount="2">
42 <sequential>
43 <antcall target="pdepend" />
44 <antcall target="phpmd" />
45 </sequential>
46 <antcall target="phpcpd" />
47 <antcall target="phpcs" />
48 <antcall target="phpdoc" />
49 <antcall target="phploc" />
50 </parallel>
51 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
52
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
53 <target name="pdepend" description="Generate jdepend.xml and software metrics charts using PHP_Depend">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
54 <exec executable="pdepend${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
55 <arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" />
56 <arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" />
57 <arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" />
58 <arg path="${source}" />
59 </exec>
60 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
61
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
62 <target name="phpmd" description="Generate pmd.xml using PHPMD">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
63 <exec executable="phpmd${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
64 <arg path="${joomlasource}" />
65 <arg value="xml" />
66 <arg value="${basedir}/build/phpmd.xml" />
67 <arg value="--reportfile" />
68 <arg value="${basedir}/build/logs/pmd.xml" />
69 </exec>
70 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
71
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
72 <target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
73 <exec executable="phpcpd${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
74 <arg value="--log-pmd" />
75 <arg value="${basedir}/build/logs/pmd-cpd.xml" />
76 <arg path="${source}/joomla" />
77 </exec>
78 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
79
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
80 <target name="phploc" description="Generate phploc.csv">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
81 <exec executable="phploc${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
82 <arg value="--log-csv" />
83 <arg value="${basedir}/build/logs/phploc.csv" />
84 <arg path="${source}/joomla" />
85 </exec>
86 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
87
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
88 <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
89 <exec executable="phpcs${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
90 <arg value="--report=checkstyle" />
77ccd48 @realityking Fix phpcs check for newer version of phpcs.
realityking authored
91 <arg value="--extensions=php,css" />
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
92 <arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
93 <arg value="--standard=${basedir}/build/phpcs/Joomla" />
94 <arg path="${source}" />
95 </exec>
96 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
97
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
98 <target name="phpdoc" description="Generate API documentation using PHPDocumentor">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
99 <exec executable="phpdox${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
100 <arg value="-c" />
101 <arg path="${source}" />
102 <arg value="-d" />
103 <arg path="${basedir}/build/api" />
104 <arg value="-x" />
105 <arg path="${basedir}/build/docs" />
106 <arg value="-g" />
107 <arg value="html" />
108 </exec>
109 </target>
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
110
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
111 <target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser">
55d2888 @hieblmedia Add Windows support for the build file
hieblmedia authored
112 <exec executable="phpcb${script-suffix}">
b6db641 @LouisLandry Moving the legacy tests into their own suite.
LouisLandry authored
113 <arg value="--log" />
114 <arg path="${basedir}/build/logs" />
115 <arg value="--source" />
116 <arg path="${source}" />
117 <arg value="--output" />
118 <arg path="${basedir}/build/code-browser" />
119 </exec>
120 </target>
121
4899ff7 @realityking Add a lint target to build.xml and fix an error found by it.
realityking authored
122 <target name="lint" description="Perform syntax check of sourcecode files">
123 <apply executable="php" failonerror="true">
124 <arg value="-l" />
125
126 <fileset dir="${source}">
127 <include name="**/*.php" />
128 <modified />
129 </fileset>
130 </apply>
131 </target>
132
95c1137 Fixing build script so that the nightly works again and targets can be r...
Ian MacLennan authored
133 <target name="build" depends="clean,phpunit,phpunit-legacy,parallelTasks,phpcb" />
9ebf8b8 @ianmacl Adding files for continuous integration
ianmacl authored
134 </project>
Something went wrong with that request. Please try again.