cops/test/prepareSauceTest.sh

19 lines
499 B
Bash
Raw Normal View History

2013-11-28 11:06:31 +02:00
#!/usr/bin/env bash
2013-11-28 12:11:07 +02:00
PHP_VERSION=`php -v|grep --only-matching --perl-regexp "PHP 5\.\\d+"`
2013-11-28 11:41:14 +02:00
echo $PHP_VERSION
2013-11-28 11:06:31 +02:00
2013-11-28 12:11:07 +02:00
if [[ $PHP_VERSION != "PHP 5.5" ]]
2013-11-28 11:06:31 +02:00
then
echo "Bad PHP version"
exit
fi
echo "Good PHP version"
2013-11-28 14:45:10 +02:00
curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
2013-11-28 12:45:54 +02:00
curl -s https://raw.github.com/jlipps/sausage-bun/master/givememysausage.php | php
cp test/config_local.php.sauce config_local.php
php -S localhost:8888 2> /dev/null &
2013-11-28 12:50:30 +02:00
vendor/bin/phpunit test/Sauce.php