Page MenuHomePhabricator
Paste P4291

PHPUnit with both HHVM and PHP5
ActivePublic

Authored by Sebastian_Berlin-WMSE on Oct 24 2016, 8:08 AM.
Project Tags
Referenced Files
F4658498: PHPUnit with both HHVM and PHP5
Oct 25 2016, 10:34 AM
F4648423: PHPUnit with both HHVM and PHP5
Oct 24 2016, 8:08 AM
#! /usr/bin/env bash
function runHhvm {
echo "******"
echo "*HHVM*"
echo "******"
/vagrant/mediawiki/tests/phpunit/phpunit.php --wiki wiki $* || return 1
}
function runPhp5 {
echo "******"
echo "*PHP5*"
echo "******"
php5 /vagrant/mediawiki/tests/phpunit/phpunit.php --wiki wiki $* || return 1
}
while getopts "h" optname
do
case "$optname" in
"h")
shouldPhp5Run=false
;;
esac
done
runHhvm $* && runPhp5 $*