Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
micszo committed May 10, 2024
1 parent 5020a46 commit bf60078
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@ export APP_ENV="behat" APP_DEBUG="1"
export PHP_IMAGE="ibexa_php:latest-node" PHP_IMAGE_DEV="ibexa_php:latest-node"

docker-compose --env-file .env up -d --build --force-recreate

if php -v | grep -q '8.3'; then
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 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

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'
#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 bf60078

Please sign in to comment.