Index: trunk/test-server/cc-home/projects/mw/build.properties |
— | — | @@ -1,5 +1,6 @@ |
2 | 2 | builddir=${basedir}/build |
3 | 3 | sourcedir=${basedir}/source |
| 4 | +extensionsdir=${basedir}/extensions |
4 | 5 | apache.root=/var/www/irc |
5 | 6 | |
6 | 7 | # 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 @@ |
2 | 2 | <?xml version="1.0" encoding="UTF-8"?> |
3 | 3 | <project name="phpundercontrol.org" default="build" basedir="."> |
4 | | - <target name="build" depends="uptodate,init,apidoc,phpunit" /> |
| 4 | + <target name="build" depends="uptodate,init,phpunit" /> |
5 | 5 | <property file="build.properties"/> |
6 | 6 | |
7 | 7 | <!-- |
— | — | @@ -23,6 +23,13 @@ |
24 | 24 | </exec> |
25 | 25 | </target> |
26 | 26 | |
| 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 | + |
27 | 34 | <available file="${builddir}/data/phpuc.zip" property="phpuc.exists"/> |
28 | 35 | <target name="fetchphpuc" unless="phpuc.exists"> |
29 | 36 | <mkdir dir="${builddir}/data" /> |
— | — | @@ -30,7 +37,6 @@ |
31 | 38 | dest="${builddir}/data/phpuc.zip" |
32 | 39 | verbose="on"/> |
33 | 40 | </target> |
34 | | - |
35 | 41 | <available file="${builddir}/data/phpdoc" property="phpdoc.exists"/> |
36 | 42 | <target name="phpdoctemplates" unless="phpdoc.exists" depends="fetchphpuc"> |
37 | 43 | <unzip src="${builddir}/data/phpuc.zip" |
— | — | @@ -42,7 +48,7 @@ |
43 | 49 | </unzip> |
44 | 50 | </target> |
45 | 51 | |
46 | | - <target name="init" depends="clean,checkout"> |
| 52 | + <target name="init" depends="clean,checkout,checkout-ext"> |
47 | 53 | <mkdir dir="${builddir}" /> |
48 | 54 | <mkdir dir="${builddir}/api" /> |
49 | 55 | <mkdir dir="${builddir}/data" /> |
— | — | @@ -54,6 +60,9 @@ |
55 | 61 | <exec executable="php" dir="${sourcedir}/" failonerror="true"> |
56 | 62 | <arg line="maintenance/install.php --dbtype=sqlite --dbpath=${builddir}/data --pass=testpass test test"/> |
57 | 63 | </exec> |
| 64 | + <exec executable="sh" dir="${sourcedir}/" failonerror="true"> |
| 65 | + <arg line="-c "echo require_once\( dirname\( dirname\( __FILE__ \) \) \) . \'/ExtraSettings.php\'\;>>LocalSettings.php""/> |
| 66 | + </exec> |
58 | 67 | </target> |
59 | 68 | |
60 | 69 | <target name="test-static" depends="prepare"> |
— | — | @@ -75,10 +84,13 @@ |
76 | 85 | </apply> |
77 | 86 | </target> |
78 | 87 | |
79 | | - <target name="uptodate" depends="checkout"> |
| 88 | + <target name="uptodate" depends="checkout,checkout-ext"> |
80 | 89 | <exec executable="svn" dir="${sourcedir}"> |
81 | 90 | <arg line="up" /> |
82 | 91 | </exec> |
| 92 | + <exec executable="svn" dir="${extensionsdir}"> |
| 93 | + <arg line="up" /> |
| 94 | + </exec> |
83 | 95 | </target> |
84 | 96 | |
85 | 97 | <target name="apidoc" depends="phpdoctemplates"> |
— | — | @@ -92,7 +104,6 @@ |
93 | 105 | --ignore 'Messages*.php'"/> |
94 | 106 | </exec> |
95 | 107 | </target> |
96 | | - |
97 | 108 | <target name="checkstyle"> |
98 | 109 | <exec executable="phpcs" dir="${sourcedir}" output="${builddir}/logs/checkstyle.xml"> |
99 | 110 | <arg line="--report=checkstyle --standard=PEAR --ignore='Messages*.php,*.css,*.js' ${sourcepart}"/> |