Skip to content
Newer
Older
100644 301 lines (256 sloc) 16.6 KB
d32a2ca import
Drak authored Mar 7, 2010
1 <?xml version="1.0" encoding="UTF-8"?>
7a988db Some updates to phing build. Finally got zip task working in native p…
Drak authored Apr 17, 2011
2 <project name="zikula" default="clean">
506088d Test refs #2449
Drak authored Jul 31, 2010
3
d32a2ca import
Drak authored Mar 7, 2010
4 <!-- invokation
b977a41 Switch documentation generator to DocBlox (http://www.docblox-project…
Drak authored May 12, 2011
5 phing -f $WORKSPACE/source/build.xml clean prepare phpcs phpcb phpcpd phpunit pdepend phpmd docblox jsdoc build build_delete -Dworkspace=$WORKSPACE -Djob_name=$JOB_NAME -Dbuild_number=$BUILD_NUMBER -Dbuild_tag=$BUILD_TAG -Dbuild_id=$BUILD_ID -Dsvn_revision=$SVN_REVISION
bb91026 Test commit refs #2449
Drak authored Jul 31, 2010
6 # note phpcb must follow phpcs
d32a2ca import
Drak authored Mar 7, 2010
7 -->
a89416b Test commit.
Drak authored Jul 31, 2010
8
d32a2ca import
Drak authored Mar 7, 2010
9 <!--
10 BUILD_NUMBER - The current build number, such as "153"
11 BUILD_ID - The current build id, (YYYY-MM-DD_hh-mm-ss)
12 JOB_NAME - Name of the project of this build, such as "foo"
c5628d0 @cmfcmf Fixed and cleaned up Blocks javascript.
cmfcmf authored Oct 13, 2013
13 BUILD_TAG - String of "jenkins-${JOB_NAME}-${BUILD_NUMBER}".
d32a2ca import
Drak authored Mar 7, 2010
14 WORKSPACE - The absolute path of the workspace.
15 SVN_REVISION - The revision this build is based on.
16 -->
a89416b Test commit.
Drak authored Jul 31, 2010
17
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
18 <property name="builddir" value="${workspace}/build"/>
19 <property name="sourcedir" value="${workspace}/source"/>
20 <property name="package" value="${job_name}.build${build_number}"/>
21 <property name="exportdir" value="${builddir}/export"/>
22 <property name="archivedir" value="${builddir}/archive"/>
23 <property name="packagepath" value="${exportdir}/${job_name}"/>
24 <property name="checksumpath" value="${archivedir}/${package}-checksums"/>
25 <property name="patchdir" value="${builddir}/patch"/>
26 <property name="tmpdir" value="${builddir}/tmp"/>
27 <property name="ignorepaths" value="lib/vendor/*,javascript/*,system/*,themes/*,install/*,lib/legacy,plugins/*"/>
28 <property name="ownjslist" value="
ab8b814 @craigh add missing js to build
craigh authored Jun 27, 2015
29 javascript/helpers/bootstrap-zikula.js,
996ab29 @craigh more jenkins build fixes
craigh authored Mar 12, 2016
30 javascript/helpers/form/form.js,
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
31 javascript/helpers/Zikula.js,
32 javascript/helpers/Zikula.ImageViewer.js,
33 javascript/helpers/Zikula.Tree.js,
34 javascript/helpers/Zikula.itemlist.js,
35 javascript/helpers/Zikula.UI.js,
699bad1 @craigh correct psr-4 paths in build.xml
craigh authored Sep 12, 2015
36 system/AdminModule/Resources/public/js/admin_admin_admintabs.js,
37 system/AdminModule/Resources/public/js/admin_admin_systemnotices.js,
b157d9e @craigh fix typo. refs #2638
craigh authored Nov 8, 2015
38 system/AdminModule/Resources/public/js/jQuery.mmenu-5.5.1/dist/core/js/jquery.mmenu.min.all.js,
699bad1 @craigh correct psr-4 paths in build.xml
craigh authored Sep 12, 2015
39 system/BlocksModule/Resources/public/js/Zikula.Blocks.Admin.Common.js,
40 system/BlocksModule/Resources/public/js/Zikula.Blocks.Admin.Modifyposition.js,
41 system/BlocksModule/Resources/public/js/contextmenu.js,
42 system/BlocksModule/Resources/public/js/functions.js,
43 system/BlocksModule/Resources/public/js/Zikula.Menutree.Tree.js,
44 system/CategoriesModule/Resources/public/js/categories_admin_edit.js,
0389e5c @craigh update build.xml file.
craigh authored Nov 7, 2015
45 system/CategoriesModule/Resources/public/js/categories_admin_view.js,
699bad1 @craigh correct psr-4 paths in build.xml
craigh authored Sep 12, 2015
46 system/GroupsModule/Resources/public/js/groups.js,
47 system/PageLockModule/Resources/public/js/PageLock.js,
48 system/PermissionsModule/Resources/public/js/Zikula.Permission.Admin.ModifyConfig.js,
49 system/PermissionsModule/Resources/public/js/Zikula.Permission.Admin.View.js,
0389e5c @craigh update build.xml file.
craigh authored Nov 7, 2015
50 system/RoutesModule/Resources/public/js/ZikulaRoutesModule.EditFunctions.js,
51 system/RoutesModule/Resources/public/js/ZikulaRoutesModule.Finder.js,
52 system/RoutesModule/Resources/public/js/ZikulaRoutesModule.js,
53 system/RoutesModule/Resources/public/js/ZikulaRoutesModule.Validation.js,
699bad1 @craigh correct psr-4 paths in build.xml
craigh authored Sep 12, 2015
54 system/SearchModule/Resources/public/js/ZikulaSearchModule.User.Form.js,
55 system/SecurityCenterModule/Resources/public/js/securitycenter_admin_allowedhtm.js,
56 system/SecurityCenterModule/Resources/public/js/securitycenter_admin_purifierconfig.js,
57 system/SettingsModule/Resources/public/js/ZikulaSettingsModule.Admin.Phpinfo.js,
58 system/ThemeModule/Resources/public/js/ZikulaThemeModule.Admin.ModifyConfig.js,
59 system/ThemeModule/Resources/public/js/ZikulaThemeModule.Admin.View.js,
60 system/ThemeModule/Resources/public/js/themeswitcher.js,
61 system/UsersModule/Resources/public/js/Zikula.Users.Admin.Config.js,
62 system/UsersModule/Resources/public/js/Zikula.Users.Admin.Modify.js,
63 system/UsersModule/Resources/public/js/Zikula.Users.Admin.View.js,
64 system/UsersModule/Resources/public/js/Zikula.Users.Common.UserValidation.js,
65 system/UsersModule/Resources/public/js/Zikula.Users.Login.js,
66 system/UsersModule/Resources/public/js/Zikula.Users.LoginBlock.js,
67 system/UsersModule/Resources/public/js/Zikula.Users.PassMeter.js,
68 system/UsersModule/Resources/public/js/Zikula.Users.Util.CapsLock.js,
69 system/UsersModule/Resources/public/js/ZikulaUsersModule.Admin.MailUsers.js"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
70
2f7bacd Go for broke, compress all own js files.
Drak authored Jun 29, 2010
71
d1f1139 Merge build script from 1.7
Drak authored Mar 24, 2010
72 <!-- need a second property since phpdoc doesn't respect wildcard patterns -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
73 <property name="docbloxignorepaths" value="lib/vendor/,javascript/,system/"/>
74 <property name="ignorefiletypes" value="*.css,*.js"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
75
d32a2ca import
Drak authored Mar 7, 2010
76 <target name="clean">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
77 <echo msg="Clean..."/>
78 <delete dir="${builddir}" includeemptydirs="true"/>
79 <delete dir="${sourcedir}/src/vendor" includeemptydirs="true"/>
b282af3 @craigh do not delete composer.lock file on jenkins build
craigh authored Mar 12, 2016
80 <!--<delete file="${workspace}/source/composer.lock"/>-->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
81 <delete file="${workspace}/source/composer.phar"/>
d32a2ca import
Drak authored Mar 7, 2010
82 </target>
83
84 <target name="prepare">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
85 <echo msg="Prepare..."/>
86 <mkdir dir="${builddir}"/>
87 <mkdir dir="${builddir}/logs"/>
88 <mkdir dir="${builddir}/coverage"/>
89 <mkdir dir="${builddir}/docs"/>
90 <mkdir dir="${builddir}/phpcb"/>
91 <mkdir dir="${builddir}/archive"/>
92 <mkdir dir="${builddir}/export"/>
93 <mkdir dir="${builddir}/patch"/>
94 <mkdir dir="${builddir}/tmp"/>
95 <mkdir dir="${builddir}/jsdoc"/>
96 <exec command="curl -s https://getcomposer.org/installer | php;mv composer.phar ${workspace}/source"/>
9882cab @craigh more possible build improvements
craigh authored Jan 18, 2016
97 <exec command="${workspace}/source/composer.phar install --prefer-dist --no-dev --optimize-autoloader" checkreturn="true" passthru="true" /><!-- no-scripts removed -->
d32a2ca import
Drak authored Mar 7, 2010
98 </target>
99
100 <!-- Build archives -->
101 <target name="build" depends="prepare">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
102 <echo msg="Exporting for build..."/>
d32a2ca import
Drak authored Mar 7, 2010
103 <!-- ATTN export urls require manual edit -->
88626f6 Fix autoloader paths for CI
Drak authored Jan 4, 2013
104
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
105 <exec command="cp -a ${workspace}/source/src ${packagepath}"/>
283ae8a Build experiments with GIT.
Drak authored Jul 31, 2010
106
2651f06 @cmfcmf Correct composer_vendors generation and add changelog-1.3 file to docs.
cmfcmf authored Apr 18, 2015
107 <!-- generate composer_vendors file -->
108 <exec command="${workspace}/source/build.php build:generate_vendor_doc --write-to '${packagepath}/docs/en/Composer_Vendors.md'" checkreturn="true" passthru="true"/>
f66d2b0 @cmfcmf Add less generation
cmfcmf authored Sep 19, 2015
109
110 <!-- generate less file -->
4c9331c @cmfcmf Fix LESS generation.
cmfcmf authored Sep 19, 2015
111 <exec command="${workspace}/source/build.php build:generate_less --write-to '${packagepath}/web/bootstrap-font-awesome.css'" checkreturn="true" passthru="true"/>
e09e92e @craigh correct jenkins build
craigh authored Mar 12, 2016
112
88d6e8c @craigh move doc files on ci build
craigh authored Jan 17, 2015
113 <!-- move doc files from repo root -->
114 <echo msg="Moving doc files to /docs/en ..."/>
115 <move file="${workspace}/source/README.md" tofile="${packagepath}/docs/en/README.md" overwrite="true"/>
e09e92e @craigh correct jenkins build
craigh authored Mar 12, 2016
116 <move file="${workspace}/source/INSTALL-1.4.md" tofile="${packagepath}/docs/en/INSTALL-1.4.md" overwrite="true"/>
69718c1 @craigh fix build
craigh authored Jan 10, 2016
117 <move file="${workspace}/source/UPGRADE-1.4.md" tofile="${packagepath}/docs/en/UPGRADE-1.4.md" overwrite="true"/>
2651f06 @cmfcmf Correct composer_vendors generation and add changelog-1.3 file to docs.
cmfcmf authored Apr 18, 2015
118 <move file="${workspace}/source/CHANGELOG-1.3.md" tofile="${packagepath}/docs/en/CHANGELOG-1.3.md" overwrite="true"/>
88d6e8c @craigh move doc files on ci build
craigh authored Jan 17, 2015
119 <move file="${workspace}/source/CHANGELOG-1.4.md" tofile="${packagepath}/docs/en/CHANGELOG-1.4.md" overwrite="true"/>
1155f5e @cmfcmf Also move composer.json / composer.lock files to docs folder.
cmfcmf authored Apr 7, 2015
120 <move file="${workspace}/source/composer.json" tofile="${packagepath}/docs/en/dev/composer.json" overwrite="true"/>
121 <move file="${workspace}/source/composer.lock" tofile="${packagepath}/docs/en/dev/composer.lock" overwrite="true"/>
88d6e8c @craigh move doc files on ci build
craigh authored Jan 17, 2015
122
2bb7c15 @cmfcmf Do not allow any of the commands to fail
cmfcmf authored Jan 21, 2015
123 <exec command="${workspace}/source/build.php build:purge_vendors --vendor-dir ${packagepath}/vendor" checkreturn="true" passthru="true"/>
124 <exec command="${workspace}/source/build.php build:fix_autoloader --vendor-dir ${packagepath}/vendor" checkreturn="true" passthru="true"/>
6f1b4c2 Add some debug lines.
Drak authored Jan 4, 2013
125
daf55c9 @cmfcmf Install assets during the build process.
cmfcmf authored Dec 28, 2013
126 <!-- install assets -->
fd6eac5 @craigh attempting to fix build refs #2649
craigh authored Nov 23, 2015
127 <!--<exec command="php ${packagepath}/app/console assets:install ${packagepath}/web" checkreturn="true" passthru="true"/>-->
e09e92e @craigh correct jenkins build
craigh authored Mar 12, 2016
128
60f39fd @cmfcmf Create Route translation file.
cmfcmf authored Dec 23, 2014
129 <!-- create route translation dummy file -->
2bb7c15 @cmfcmf Do not allow any of the commands to fail
cmfcmf authored Jan 21, 2015
130 <exec command="php ${packagepath}/app/console translation:extract --enable-extractor=jms_i18n_routing --dir=${packagepath}/app/logs --output-dir=${packagepath}/app/Resources/translations template" checkreturn="true" passthru="true" />
daf55c9 @cmfcmf Install assets during the build process.
cmfcmf authored Dec 28, 2013
131
b1bea66 @cmfcmf Clear cache and log directories filled by the console command, refs #…
cmfcmf authored Jul 26, 2014
132 <!-- Clear cache and log directories filled by the console command above -->
9882cab @craigh more possible build improvements
craigh authored Jan 18, 2016
133 <delete includeEmptyDirs="true">
134 <fileset dir="${packagepath}/app/cache" defaultexcludes="false">
135 <exclude name=".htaccess" />
136 <include name="**/*" />
137 </fileset>
138 </delete>
139 <delete includeEmptyDirs="true">
140 <fileset dir="${packagepath}/app/logs" defaultexcludes="false">
141 <exclude name=".htaccess" />
142 <include name="**/*" />
143 </fileset>
144 </delete>
b1bea66 @cmfcmf Clear cache and log directories filled by the console command, refs #…
cmfcmf authored Jul 26, 2014
145
dd0186b Experimental compression of JS during build.
Drak authored Jun 28, 2010
146 <!-- compress JS -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
147 <foreach list="${ownjslist}" param="filename" target="compressownjs"/>
148
149 <echo msg="Prepare permissions..."/>
f468c15 @cmfcmf Adjust folder permissions.
cmfcmf authored May 24, 2015
150 <chmod file="${packagepath}/app/config" mode="0777"/>
151 <chmod file="${packagepath}/app/config/dynamic" mode="0777"/>
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
152 <chmod file="${packagepath}/app/cache" mode="0777"/>
153 <chmod file="${packagepath}/app/logs" mode="0777"/>
f468c15 @cmfcmf Adjust folder permissions.
cmfcmf authored May 24, 2015
154 <chmod file="${packagepath}/config" mode="0777"/>
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
155 <chmod file="${packagepath}/userdata" mode="0777"/>
156
157 <echo msg="Creating archive..."/>
d32a2ca import
Drak authored Mar 7, 2010
158 <!-- zip's don't play nicely in Phing - using direct command -->
7a988db Some updates to phing build. Finally got zip task working in native p…
Drak authored Apr 17, 2011
159 <!-- exec escape="false" command="cd ${exportdir}; zip -D -r ${archivedir}/${package}.zip ." / -->
160 <zip destfile="${archivedir}/${package}.zip">
311d9a3 Fix build of zip files.
Drak authored Nov 28, 2012
161 <fileset dir="${exportdir}">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
162 <include name="**/**"/>
7a988db Some updates to phing build. Finally got zip task working in native p…
Drak authored Apr 17, 2011
163 </fileset>
164 </zip>
d32a2ca import
Drak authored Mar 7, 2010
165
b0686f9 Revert to command line tarballs because phing doesnt preserve the chm…
Drak authored Apr 19, 2011
166 <!-- Use tar at commandline because phing tarballs don't support file chmod -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
167 <exec escape="false"
168 command="cd ${exportdir}; tar cp ${job_name} > ${archivedir}/${package}.tar; gzip ${archivedir}/${package}.tar"/>
b0686f9 Revert to command line tarballs because phing doesnt preserve the chm…
Drak authored Apr 18, 2011
169 <!-- tar destfile="${archivedir}/${package}.tar.gz" compression="gzip">
7a988db Some updates to phing build. Finally got zip task working in native p…
Drak authored Apr 17, 2011
170 <fileset dir="${exportdir}/${job_name}">
171 <include name="**/**" />
172 </fileset>
b0686f9 Revert to command line tarballs because phing doesnt preserve the chm…
Drak authored Apr 18, 2011
173 </tar -->
06f297d Attempt to fix tar artifact refs #2940
Drak authored Mar 26, 2011
174
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
175 <echo msg="Files copied and compressed in build directory OK!"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
176
d32a2ca import
Drak authored Mar 7, 2010
177 <!-- ATTN phingcall target="build_patch" / -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
178 <phingcall target="build_checksums"/>
52f564d Add build cleanup.
Drak authored Mar 22, 2010
179 </target>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
180
7f82a6d Remove depends.
Drak authored Mar 22, 2010
181 <target name="build_delete">
c502cf2 @craigh test some changes to CI build
craigh authored Jan 18, 2016
182 <echo msg="Nothing to do in build delete target."/>
52f564d Add build cleanup.
Drak authored Mar 22, 2010
183 <!-- clean up export dir, this is not needed (unless we are debugging) -->
11b35c5 Build experiments with GIT.
Drak authored Jul 31, 2010
184 <!-- delete dir="${packagepath}" includeemptydirs="true" -->
d32a2ca import
Drak authored Mar 7, 2010
185 </target>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
186
d32a2ca import
Drak authored Mar 7, 2010
187 <target name="build_checksums">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
188 <echo msg="Creating MD5 and SHA1 checksums..."/>
189 <exec escape="false" command="echo -----------------md5sums----------------- > ${checksumpath}.tmp"/>
190 <exec escape="false" command="md5sum ${archivedir}/*.tar.gz ${archivedir}/*.zip >> ${checksumpath}.tmp"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
191
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
192 <exec escape="false" command="echo -----------------sha1sums----------------- >> ${checksumpath}.tmp"/>
193 <exec escape="false" command="sha1sum ${archivedir}/*.tar.gz ${archivedir}/*.zip >> ${checksumpath}.tmp"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
194
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
195 <exec escape="false" command="cat ${checksumpath}.tmp | sed 's!${archivedir}/!!g' > ${checksumpath}.txt"/>
196 <delete file="${checksumpath}.tmp"/>
d32a2ca import
Drak authored Mar 7, 2010
197 </target>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
198
d32a2ca import
Drak authored Mar 7, 2010
199 <target name="build_patch">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
200 <echo msg="Making patches...."/>
d32a2ca import
Drak authored Mar 7, 2010
201 <!-- get diffs for releases and save in ${tmpdir}/CHANGES file -->
202 <!-- ATTN urls require manual edit -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
203 <exec escape="false"
204 command="svn diff https://code.zikula.org/svn/core/tags/Zikula-1.3.0 https://code.zikula.org/svn/core/branches/zikula-1.3/src@${svn_revision} --summarize | sort|uniq > ${tmpdir}/CHANGES"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
205
d32a2ca import
Drak authored Mar 7, 2010
206 <!-- Remove lines that start with space (which means only a property change), or contain paths to deleted files -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
207 <exec escape="false" command="cat ${tmpdir}/CHANGES | sed -e '/^[ D]/d' >${tmpdir}/AM"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
208
d32a2ca import
Drak authored Mar 7, 2010
209 <!-- List deleted files -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
210 <exec escape="false" command="cat ${tmpdir}/CHANGES | grep -e '^D' >${tmpdir}/DELETED.tmp"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
211
d32a2ca import
Drak authored Mar 7, 2010
212 <!-- this needs to be the regex escaped of the OLD branch -->
213 <!-- ATTN url requires manual edit -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
214 <property name="patchregex" value="https://code.zikula.org/svn/core/tags/Zikula-1.3.0/"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
215
d32a2ca import
Drak authored Mar 7, 2010
216 <!-- A or M, ignoring svn-property changes (2nd char), strip the svn-path from the remaining lines, store in ${tmpdir}/FILES -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
217 <exec escape="false" command="cat ${tmpdir}/AM | sed -e 's!^[AM]. *${patchregex}!!g' > ${tmpdir}/FILES"/>
218 <exec escape="false" command="cat ${tmpdir}/DELETED.tmp | sed -e 's!${patchregex}!!g' > ${tmpdir}/DELETED"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
219
d32a2ca import
Drak authored Mar 7, 2010
220 <!-- assemble patch -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
221 <exec escape="false"
222 command="cd ${packagepath};for FILE in `cat ${tmpdir}/FILES`;do cp --parents $FILE ${patchdir};done"/>
0719f34 Sync patch build process with 1.2
Drak authored Apr 19, 2010
223
224 <!-- install folder is always required -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
225 <exec escape="false"
226 command="svn export --force https://code.zikula.org/svn/core/branches/zikula-1.3/src/install@${svn_revision} ${patchdir}/install"/>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
227
d32a2ca import
Drak authored Mar 7, 2010
228 <!-- zip's don't play nicely in Phing - using direct command -->
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
229 <exec escape="false" command="cd ${patchdir}; zip -D -r ${archivedir}/${package}.patch.zip ."/>
d32a2ca import
Drak authored Mar 7, 2010
230 </target>
231
39c6d44 Keep PHPDocumentor as a template.
Drak authored May 12, 2011
232 <!-- Docblox documentor -->
b977a41 Switch documentation generator to DocBlox (http://www.docblox-project…
Drak authored May 12, 2011
233 <target name="docblox">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
234 <echo msg="DocBlox..."/>
235 <exec command="docblox project:run --directory ${sourcedir}/src/lib/dbobject,${sourcedir}/src/lib/i18n,${sourcedir}/src/lib/viewplugins,${sourcedir}/src/lib/StreamReader,${sourcedir}/src/lib/util,${sourcedir}/src/lib/Zikula --target ${builddir}/docs"
236 escape="false"/>
39c6d44 Keep PHPDocumentor as a template.
Drak authored May 12, 2011
237 </target>
238
239 <!-- PHPDocumentor -->
240 <target name="phpdoc">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
241 <echo msg="PHPDocumentor..."/>
242 <exec command="phpdoc --directory ${sourcedir}/src/lib/dbobject,${sourcedir}/src/lib/i18n,${sourcedir}/src/lib/viewplugins,${sourcedir}/src/lib/StreamReader,${sourcedir}/src/lib/util,${sourcedir}/src/lib/Zikula --target ${builddir}/docs"
243 escape="false"/>
d32a2ca import
Drak authored Mar 7, 2010
244 </target>
245
246 <!-- PHP copy/paste analysis -->
247 <target name="phpcpd">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
248 <echo msg="PHP Copy/Paste..."/>
249 <exec command="phpcpd --log-pmd ${builddir}/logs/phpcpd.xml --suffixes php --exclude ${ignorepaths} ${sourcedir}/src"
250 escape="false"/>
d1f1139 Merge build script from 1.7
Drak authored Mar 24, 2010
251 </target>
7bc473c Update build with all js to be compressed.
Drak authored Jul 4, 2010
252
d1f1139 Merge build script from 1.7
Drak authored Mar 24, 2010
253 <!-- PHP MD analysis -->
254 <target name="phpmd">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
255 <echo msg="PHP_MD..."/>
256 <exec command="phpmd ${sourcedir}/src xml codesize --reportfile ${builddir}/logs/pmd.xml --ignore ${ignorepaths}"
257 escape="false"/>
d32a2ca import
Drak authored Mar 7, 2010
258 </target>
259
260 <!-- PHP dependency checker -->
261 <target name="pdepend">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
262 <!-- PHP dependency checker -->
263 <echo msg="PHP_Depend..."/>
264 <exec command="pdepend --jdepend-xml=${builddir}/logs/jdepend.xml --jdepend-chart=${builddir}/logs/jdepend.png --phpunit-xml=${builddir}/logs/pdepend_phpunit.xml --overview-pyramid=${builddir}/logs/pdepend_pyramid.png --summary-xml=${builddir}/logs/pdepend_summary.xml --ignore=${ignorepaths} --optimization=best --suffix=php ${sourcedir}/src"
265 escape="false"/>
d32a2ca import
Drak authored Mar 7, 2010
266 </target>
267
268 <!-- PHP CodeSniffer -->
269 <target name="phpcs">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
270 <echo msg="PHP_CodeSniffer..."/>
271 <exec command="phpcs --extensions=php --report=checkstyle --standard=Zikula --ignore=${ignorepaths} ${sourcedir}/src > ${builddir}/logs/phpcs.xml"
272 escape="false"/>
d32a2ca import
Drak authored Mar 7, 2010
273 </target>
274
275 <!-- Unit Tests & coverage analysis -->
276 <target name="phpunit">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
277 <echo msg="PHPUnit..."/>
05eff4a I'll get this right one day...
Drak authored Mar 29, 2010
278 <exec command="phpunit --log-junit ${builddir}/logs/phpunit.xml --coverage-clover ${builddir}/coverage/clover.xml --coverage-html ${builddir}/coverage/ ${sourcedir}/tests"/>
d32a2ca import
Drak authored Mar 7, 2010
279 </target>
280
5a89d19 Update JSDocs
Drak authored Jul 24, 2010
281 <!-- JSDoc -->
282 <target name="jsdoc">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
283 <echo msg="JSDoc..."/>
d2b8f5a Experiment with jsdoc_toolkit instead.
Drak authored Jul 24, 2010
284 <exec command="cd /opt/jsdoc-toolkit; /opt/jsdoc-toolkit/jsrun.sh -t=/opt/jsdoc-toolkit/templates/jsdoc --directory=${builddir}/jsdoc ${sourcedir}/src/javascript/helpers"/>
6cfa18d Experiment with jsdoc_toolkit instead.
Drak authored Jul 24, 2010
285 <!-- exec command="cd ${builddir}/jsdoc;/opt/jsdoc-toolkit ${sourcedir}/src/javascript/helpers"/ -->
5a89d19 Update JSDocs
Drak authored Jul 24, 2010
286 </target>
287
d32a2ca import
Drak authored Mar 7, 2010
288 <!-- Code Browser -->
289 <target name="phpcb">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
290 <echo msg="PHP_CodeBrowser on XML for voilations..."/>
291 <exec command="phpcb --log ${builddir}/logs --output ${builddir}/phpcb"/>
d32a2ca import
Drak authored Mar 7, 2010
292 </target>
dd0186b Experimental compression of JS during build.
Drak authored Jun 28, 2010
293
294 <!-- Compress own JS -->
295 <target name="compressownjs">
af3bec5 Update paths for JS compression during CI build
Drak authored Apr 7, 2013
296 <echo msg="YUI_Compressor for JS files..."/>
a5a42d6 Update YUICompressor to 2.4.8
Drak authored Jul 24, 2013
297 <!-- <exec command="BAREFILENAME=`echo ${filename}|sed 's/.js//g'`; /usr/bin/java -jar /var/lib/jenkins/yuicompressor-2.4.8.jar -o ${packagepath}/$BAREFILENAME-min.js ${packagepath}/${filename}" /> -->
298 <exec command="/usr/bin/java -jar /var/lib/jenkins/yuicompressor-2.4.8.jar -o ${packagepath}/${filename}.tmp ${packagepath}/${filename};echo '// Copyright Zikula Foundation 2010 - license GNU/LGPLv3 (or at your option, any later version).' > ${packagepath}/${filename};cat ${packagepath}/${filename}.tmp >> ${packagepath}/${filename};rm -f ${packagepath}/${filename}.tmp"/>
dd0186b Experimental compression of JS during build.
Drak authored Jun 28, 2010
299 </target>
d32a2ca import
Drak authored Mar 7, 2010
300 </project>
Something went wrong with that request. Please try again.