r75257 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75256‎ | r75257 | r75258 >
Date:16:05, 23 October 2010
Author:mah
Status:ok
Tags:
Comment:
Initial check in for install script for PHPunit
Modified paths:
  • /trunk/phase3/maintenance/tests/phpunit/install-phpunit.sh (added) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/phpunit/install-phpunit.sh
@@ -0,0 +1,23 @@
 2+#!/bin/sh
 3+
 4+if [ `id -u` -ne 0 ]; then
 5+ echo '*** ERROR' Must be root to run
 6+ exit 1
 7+fi
 8+
 9+if ( has_binary phpunit ); then
 10+ echo PHPUnit already installed
 11+else if ( has_binary apt-get ); then
 12+ echo Installing phpunit with apt-get
 13+ apt-get install phpunit
 14+else if ( has_binary yum ); then
 15+ echo Installing phpunit with yum
 16+ yum install phpunit
 17+else if ( has_binary pear ); then
 18+ echo Installing phpunit with pear
 19+ pear channel-discover pear.phpunit.de
 20+ pear install phpunit/PHPUnit
 21+fi
 22+fi
 23+fi
 24+fi
Property changes on: trunk/phase3/maintenance/tests/phpunit/install-phpunit.sh
___________________________________________________________________
Added: svn:executable
125 + *

Status & tagging log