Skip to content

Commit

Permalink
ErrorHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
micszo committed May 13, 2024
1 parent 86bf4d8 commit 8abb0d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ docker run -i --rm ibexa_php:latest-node bash -c "php -v; php -m"
printf "\nVersion and module information about php build with enabled xdebug\n"
docker run -i --rm -e ENABLE_XDEBUG="1" ibexa_php:latest-node bash -c "php -v; php -m"

printf "\Integration: Behat testing on ibexa_php:latest and ibexa_php:latest-node with eZ Platform\n"
printf "\nIntegration: Behat testing on ibexa_php:latest and ibexa_php:latest-node with eZ Platform\n"
cd volumes/ezplatform

export COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/redis.yml:doc/docker/selenium.yml"
Expand All @@ -74,6 +74,11 @@ export PHP_IMAGE="ibexa_php:latest-node" PHP_IMAGE_DEV="ibexa_php:latest-node"
docker-compose --env-file .env up -d --build --force-recreate
echo '> Workaround for test issues: Change ownership of files inside docker container'
docker-compose --env-file=.env exec -T app sh -c 'chown -R www-data:www-data /var/www'
if docker run -i --rm ibexa_php:latest-node bash -c "php -v" | grep -q '8.3'; then
echo '> Set PHP 8.2+ Ibexa error handler to avoid deprecations'
docker-compose --env-file=.env exec -T --user www-data app sh -c "composer config extra.runtime.error_handler \"\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler\""
docker-compose --env-file=.env exec -T --user www-data app sh -c "composer dump-autoload"
fi
# Rebuild Symfony container
docker-compose --env-file=.env exec -T --user www-data app sh -c "rm -rf var/cache/*"
docker-compose --env-file=.env exec -T --user www-data app php bin/console cache:clear
Expand Down

0 comments on commit 8abb0d4

Please sign in to comment.