| Current File : /home/jvzmxxx/wiki1/extensions/Wikibase/build/travis/install.sh |
#! /bin/bash
set -x
PHPVERSION=`phpenv version-name`
if [ "${PHPVERSION}" = 'hhvm' ]
then
PHPINI=/etc/hhvm/php.ini
echo "hhvm.enable_zend_compat = true" >> $PHPINI
fi
originalDirectory=$(pwd)
cd ..
wget https://github.com/wikimedia/mediawiki/archive/$MW.tar.gz
tar -zxf $MW.tar.gz
mv mediawiki-$MW phase3
cd phase3
composer self-update
composer install
# Try composer install again... this tends to fail from time to time
if [ $? -gt 0 ]; then
composer install
fi
mysql -e 'create database its_a_mw;'
php maintenance/install.php --dbtype $DBTYPE --dbuser root --dbname its_a_mw --dbpath $(pwd) --pass nyan TravisWiki admin
cd extensions
if [ "$WB" != "repo" ]; then
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Scribunto.git --depth 1
fi
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/cldr --depth 1
cp -r $originalDirectory Wikibase
cd Wikibase
composer install --prefer-source
# Try composer install again... this tends to fail from time to time
if [ $? -gt 0 ]; then
composer install --prefer-source
fi