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-11-09 06:49:12 +09:00
|
|
|
if [ "$#" -eq 0 ] || [ -z "$*" ]; then
|
2021-11-10 22:55:42 +09:00
|
|
|
vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
|
2021-10-29 01:24:43 +09:00
|
|
|
else
|
|
|
|
echo "Running with filter"
|
2021-11-10 22:55:42 +09:00
|
|
|
vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report --filter "$*"
|
2021-10-29 01:24:43 +09:00
|
|
|
fi
|