[TESTS] Remove environment setup from script

This commit is contained in:
Hugo Sales 2022-10-29 19:54:37 +01:00
parent 88e513c610
commit b41de11364
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -2,16 +2,5 @@
cd /var/www/social || exit 1 cd /var/www/social || exit 1
printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379 php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude="~vendor~" vendor/bin/phpunit --configuration=phpunit.xml.dist $*
bin/console doctrine:database:drop --force --if-exists || exit 1 # XDEBUG_MODE=off vendor/bin/paratest --processes=32 --functional --configuration=phpunit.xml.dist $*
bin/console doctrine:database:create || exit 1
bin/console doctrine:schema:update --force || exit 1
yes yes | bin/console doctrine:fixtures:load || exit 1
if [ "$#" -eq 0 ] || [ -z "$*" ]; then
# XDEBUG_MODE=off vendor/bin/paratest --verbose --debug --processes=32 --functional --configuration=phpunit.xml.dist $*
php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude="~vendor~" vendor/bin/phpunit --configuration=phpunit.xml.dist $*
else
echo "Running with filter"
XDEBUG_MODE=off vendor/bin/paratest --processes=32 --functional --configuration=phpunit.xml.dist $*
fi