2021-09-09 08:40:34 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd /var/www/social || exit 1
|
|
|
|
|
2021-10-29 01:24:43 +09:00
|
|
|
printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379
|
2021-09-09 08:40:34 +09:00
|
|
|
yes yes | php bin/console doctrine:fixtures:load || exit 1
|
|
|
|
|
2021-10-29 01:24:43 +09:00
|
|
|
echo yooo
|
|
|
|
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
|
|
runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
|
|
|
|
else
|
|
|
|
echo "Running with filter"
|
|
|
|
runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report --filter "$*"
|
|
|
|
fi
|