2021-09-09 00:40:34 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd /var/www/social || exit 1
|
|
|
|
|
2021-10-28 17:24:43 +01:00
|
|
|
printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379
|
2022-03-13 14:22:18 +00:00
|
|
|
bin/console doctrine:database:drop --force || exit 1
|
|
|
|
bin/console doctrine:database:create || exit 1
|
|
|
|
bin/console doctrine:schema:update --force || exit 1
|
|
|
|
yes yes | bin/console doctrine:fixtures:load || exit 1
|
2021-09-09 00:40:34 +01:00
|
|
|
|
2021-11-08 21:49:12 +00:00
|
|
|
if [ "$#" -eq 0 ] || [ -z "$*" ]; then
|
2021-11-10 13:55:42 +00:00
|
|
|
vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
|
2021-10-28 17:24:43 +01:00
|
|
|
else
|
|
|
|
echo "Running with filter"
|
2022-03-10 01:23:36 +00:00
|
|
|
vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report $*
|
2021-10-28 17:24:43 +01:00
|
|
|
fi
|