r76465 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76464‎ | r76465 | r76466 >
Date:20:20, 10 November 2010
Author:mah
Status:deferred
Tags:
Comment:
* Make it possible to test extensions
* remove apidoc generation as it took too long and we weren't (yet?)
using the warnings it created.
Modified paths:
  • /trunk/test-server/cc-home/projects/mw/build.properties (modified) (history)
  • /trunk/test-server/cc-home/projects/mw/build.xml (modified) (history)

Diff [purge]

Index: trunk/test-server/cc-home/projects/mw/build.properties
@@ -1,5 +1,6 @@
22 builddir=${basedir}/build
33 sourcedir=${basedir}/source
 4+extensionsdir=${basedir}/extensions
45 apache.root=/var/www/irc
56
67 # This is the part of the source checkout we're going to do things like PHPDoc, etc
Index: trunk/test-server/cc-home/projects/mw/build.xml
@@ -1,6 +1,6 @@
22 <?xml version="1.0" encoding="UTF-8"?>
33 <project name="phpundercontrol.org" default="build" basedir=".">
4 - <target name="build" depends="uptodate,init,apidoc,phpunit" />
 4+ <target name="build" depends="uptodate,init,phpunit" />
55 <property file="build.properties"/>
66
77 <!--
@@ -23,6 +23,13 @@
2424 </exec>
2525 </target>
2626
 27+ <available file="${extensionsdir}" property="extensions.exists"/>
 28+ <target name="checkout-ext" unless="extensions.exists">
 29+ <exec executable="svn">
 30+ <arg line="checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions ${extensionsdir}" />
 31+ </exec>
 32+ </target>
 33+
2734 <available file="${builddir}/data/phpuc.zip" property="phpuc.exists"/>
2835 <target name="fetchphpuc" unless="phpuc.exists">
2936 <mkdir dir="${builddir}/data" />
@@ -30,7 +37,6 @@
3138 dest="${builddir}/data/phpuc.zip"
3239 verbose="on"/>
3340 </target>
34 -
3541 <available file="${builddir}/data/phpdoc" property="phpdoc.exists"/>
3642 <target name="phpdoctemplates" unless="phpdoc.exists" depends="fetchphpuc">
3743 <unzip src="${builddir}/data/phpuc.zip"
@@ -42,7 +48,7 @@
4349 </unzip>
4450 </target>
4551
46 - <target name="init" depends="clean,checkout">
 52+ <target name="init" depends="clean,checkout,checkout-ext">
4753 <mkdir dir="${builddir}" />
4854 <mkdir dir="${builddir}/api" />
4955 <mkdir dir="${builddir}/data" />
@@ -54,6 +60,9 @@
5561 <exec executable="php" dir="${sourcedir}/" failonerror="true">
5662 <arg line="maintenance/install.php --dbtype=sqlite --dbpath=${builddir}/data --pass=testpass test test"/>
5763 </exec>
 64+ <exec executable="sh" dir="${sourcedir}/" failonerror="true">
 65+ <arg line="-c &quot;echo require_once\( dirname\( dirname\( __FILE__ \) \) \) . \'/ExtraSettings.php\'\;>>LocalSettings.php&quot;"/>
 66+ </exec>
5867 </target>
5968
6069 <target name="test-static" depends="prepare">
@@ -75,10 +84,13 @@
7685 </apply>
7786 </target>
7887
79 - <target name="uptodate" depends="checkout">
 88+ <target name="uptodate" depends="checkout,checkout-ext">
8089 <exec executable="svn" dir="${sourcedir}">
8190 <arg line="up" />
8291 </exec>
 92+ <exec executable="svn" dir="${extensionsdir}">
 93+ <arg line="up" />
 94+ </exec>
8395 </target>
8496
8597 <target name="apidoc" depends="phpdoctemplates">
@@ -92,7 +104,6 @@
93105 --ignore 'Messages*.php'"/>
94106 </exec>
95107 </target>
96 -
97108 <target name="checkstyle">
98109 <exec executable="phpcs" dir="${sourcedir}" output="${builddir}/logs/checkstyle.xml">
99110 <arg line="--report=checkstyle --standard=PEAR --ignore='Messages*.php,*.css,*.js' ${sourcepart}"/>

Status & tagging log