r94112 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94111‎ | r94112 | r94113 >
Date:15:06, 9 August 2011
Author:mah
Status:ok
Tags:
Comment:
Sync to what is actually live
Modified paths:
  • /trunk/test-server/cc-home/projects/mw/ExtraSettings.php (modified) (history)
  • /trunk/test-server/cc-home/projects/mw/build.properties (modified) (history)
  • /trunk/test-server/cc-home/projects/mw/build.xml (modified) (history)
  • /trunk/test-server/cc-home/projects/mw/config.xml (modified) (history)
  • /trunk/test-server/cc-home/projects/mw/irc-publisher.xsl (modified) (history)

Diff [purge]

Index: trunk/test-server/cc-home/projects/mw/config.xml
@@ -1,5 +1,5 @@
22 <?xml version="1.0" encoding="UTF-8"?>
3 -<project name="phpundercontrol.org" buildafterfailed="false">
 3+<project name="MediaWiki (trunk)" buildafterfailed="false">
44 <plugin name="svn" classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN" />
55 <modificationset quietperiod="60">
66 <svn localWorkingCopy="projects/${project.name}/source/"/>
@@ -14,4 +14,4 @@
1515 <log dir="logs/${project.name}">
1616 <merge dir="projects/${project.name}/build/logs/"/>
1717 </log>
18 -</project>
\ No newline at end of file
 18+</project>
Index: trunk/test-server/cc-home/projects/mw/ExtraSettings.php
@@ -5,9 +5,15 @@
66 require_once( "$ext/Cite/Cite.php" );
77 require_once( "$ext/CodeReview/CodeReview.php" );
88 require_once( "$ext/Gadgets/Gadgets.php" );
9 -require_once( "$ext/FlaggedRevs/FlaggedRevs.php" );
 9+#require_once( "$ext/FlaggedRevs/FlaggedRevs.php" );
1010 require_once( "$ext/LabeledSectionTransclusion/lst.php" );
1111 require_once( "$ext/ParserFunctions/ParserFunctions.php" );
1212 require_once( "$ext/Poem/Poem.php" );
1313
1414 $wgPFEnableStringFunctions = true; # fully test ParserFunctions
 15+
 16+$wgShowExceptionDetails = true;
 17+$wgShowSQLErrors = true;
 18+#$wgDebugLogFile = dirname( __FILE__ ) . '/build/debug.log';
 19+$wgDebugDumpSql = true;
 20+
Index: trunk/test-server/cc-home/projects/mw/build.properties
@@ -2,6 +2,7 @@
33 sourcedir=${basedir}/source
44 extensionsdir=${basedir}/extensions
55 apache.root=/var/www/irc
 6+svn.up.args=--ignore-externals
67
78 # This is the part of the source checkout we're going to do things like PHPDoc, etc
89 sourcepart=.
Index: trunk/test-server/cc-home/projects/mw/irc-publisher.xsl
@@ -9,7 +9,7 @@
1010 method="text"
1111 encoding="UTF-8" />
1212
13 - <xsl:template match="/cruisecontrol/build[@error]">Something broke. See &lt;http://ci.tesla.usability.wikimedia.org/cruisecontrol/buildresults/mw&gt;.
 13+ <xsl:template match="/cruisecontrol/build[@error]">Something broke. See &lt;http://ci.tesla.usability.wikimedia.org/cruisecontrol/&gt;.
1414 <xsl:call-template name="get-last-modified"/>
1515 </xsl:template>
1616
@@ -46,4 +46,4 @@
4747
4848 <xsl:template match="text()"/>
4949
50 -</xsl:stylesheet>
\ No newline at end of file
 50+</xsl:stylesheet>
Index: trunk/test-server/cc-home/projects/mw/build.xml
@@ -1,6 +1,6 @@
22 <?xml version="1.0" encoding="UTF-8"?>
3 -<project name="phpundercontrol.org" default="build" basedir=".">
4 - <target name="build" depends="uptodate,init,phpunit" />
 3+<project name="MediaWiki" default="build" basedir=".">
 4+ <target name="build" depends="uptodate,init,phpunit,irc-publish" />
55 <property file="build.properties"/>
66
77 <!--
@@ -37,6 +37,7 @@
3838 dest="${builddir}/data/phpuc.zip"
3939 verbose="on"/>
4040 </target>
 41+
4142 <available file="${builddir}/data/phpdoc" property="phpdoc.exists"/>
4243 <target name="phpdoctemplates" unless="phpdoc.exists" depends="fetchphpuc">
4344 <unzip src="${builddir}/data/phpuc.zip"
@@ -58,7 +59,7 @@
5960 <mkdir dir="${builddir}/logs" />
6061 <mkdir dir="${builddir}/php-code-browser" />
6162 <exec executable="php" dir="${sourcedir}/" failonerror="true">
62 - <arg line="maintenance/install.php --dbtype=sqlite --dbpath=${builddir}/data --pass=testpass test test"/>
 63+ <arg line="maintenance/install.php --dbtype=sqlite --dbpath=${builddir}/data --pass=testpass --showexceptions=true test test"/>
6364 </exec>
6465 <exec executable="sh" dir="${sourcedir}/" failonerror="true">
6566 <arg line="-c &quot;echo require_once\( dirname\( dirname\( __FILE__ \) \) \) . \'/ExtraSettings.php\'\;>>LocalSettings.php&quot;"/>
@@ -89,10 +90,10 @@
9091
9192 <target name="uptodate" depends="checkout,checkout-ext">
9293 <exec executable="svn" dir="${sourcedir}">
93 - <arg line="up" />
 94+ <arg line="up $(svn.up.args} ${sourcedir}" />
9495 </exec>
9596 <exec executable="svn" dir="${extensionsdir}">
96 - <arg line="up" />
 97+ <arg line="up ${svn.up.args} ${extensionsdir}" />
9798 </exec>
9899 </target>
99100
@@ -115,12 +116,14 @@
116117
117118 <target name="phpmd">
118119 <exec executable="phpmd" dir="${sourcedir}" output="${builddir}/logs/phpmd.xml">
119 - <arg line="${sourcepart} xml codesize,unusedcode,naming"/>
 120+ <!-- <arg line="${sourcepart} xml codesize,unusedcode,naming"/> -->
 121+ <arg line="${sourcedir}/includes/ xml codesize"/>
120122 </exec>
121123 </target>
122124
123125 <!--
124126 Checks several software metrics for the project source
 127+ 20110529: hashar: sourcepart -> sourcedir (we only take care of core)
125128 -->
126129 <target name="pdepend" depends="init">
127130 <exec executable="pdepend" dir="${sourcedir}" failonerror="false">
@@ -129,13 +132,21 @@
130133 --jdepend-chart=${builddir}/charts/jdepend.svg
131134 --overview-pyramid=${builddir}/charts/overview-pyramid.svg
132135 --coderank-mode=inheritance,property,method
133 - ${sourcepart}" />
 136+ ${sourcedir}" />
134137 </exec>
135138 </target>
136139
137140 <target name="phpunit" depends="prepare">
138 - <exec executable="./phpunit.php" dir="${sourcedir}/maintenance/tests/phpunit" failonerror="true">
139 - <arg line="--configuration suite.xml --log-junit ${builddir}/logs/junit.xml --coverage-clover ${builddir}/logs/phpunit.coverage.xml --coverage-html ${builddir}/coverage" />
 141+ <exec executable="./phpunit.php" dir="${sourcedir}/tests/phpunit" failonerror="true">
 142+ <!--
 143+ 20110519 hashar: uses 'tap', disable group 'Database', remove coverage
 144+ 20110521 hashar: stop using 'tap'
 145+ 20110528 hashar: enable 'Database' group
 146+ -->
 147+<!-- 20110519: backed out line
 148+ <arg line="==configuration suite.xml ==tap ==exclude-group Broken,Destructive,Database,Stub ==log-junit ${builddir}/logs/junit.xml ==coverage-clover ${builddir}/logs/phpunit.coverage.xml ==coverage-html ${builddir}/coverage" />
 149+-->
 150+ <arg line="--configuration suite.xml --exclude-group Broken,Stub --log-junit ${builddir}/logs/junit.xml" />
140151 </exec>
141152 </target>
142153
@@ -145,6 +156,7 @@
146157 </exec>
147158 </target>
148159
 160+ <!-- Get commiters userinfos from svn -->
149161 <available file="${builddir}/data/userinfo" property="userinfo.exists"/>
150162 <target name="userinfo" unless="userinfo.exists">
151163 <exec executable="svn">
@@ -152,6 +164,7 @@
153165 </exec>
154166 </target>
155167
 168+ <!-- Converts userinfo to XML format -->
156169 <target name="userinfo-up" depends="userinfo">
157170 <exec executable="svn" dir="${builddir}/data/userinfo">
158171 <arg line="up"/>
@@ -161,7 +174,9 @@
162175 </exec>
163176 </target>
164177
165 - <target name="irc-publish" unless="${thisbuildsuccessful}" depends="userinfo-up">
 178+ <!-- Generates build results for IRC notifications -->
 179+ <available file="${logdir}/${logfile}" property="logfile.exists"/>
 180+ <target name="irc-publish" unless="${thisbuildsuccessful}" if="logfile.exists" depends="userinfo-up">
166181 <!-- $logfile is the file -->
167182
168183 <xslt in="${logdir}/${logfile}" out="${apache.root}/irc-publish.txt"

Status & tagging log