php/docker/usr/local/bin/xdebug_enable

18 lines
503 B
Plaintext
Raw Normal View History

2021-10-13 16:40:48 +00:00
#!/bin/bash
2022-01-29 20:50:38 +00:00
echo "=>>>>>>>>> Actual environment: ${ENVIRONMENT}"
2021-10-13 16:40:48 +00:00
2021-11-23 02:08:41 +00:00
if [[ $ENVIRONMENT != 'production' ]]; then
2022-01-29 20:50:38 +00:00
echo "==============================>> Install phpunit"
2021-10-13 16:40:48 +00:00
wget -O phpunit https://phar.phpunit.de/phpunit-9.phar
install phpunit /usr/local/bin
fi
2021-11-23 02:08:41 +00:00
if [[ $ENVIRONMENT == 'development' ]]; then
2022-01-29 20:50:38 +00:00
echo "==============================>> Install xdebug"
2021-10-13 16:40:48 +00:00
apk --update --no-cache add autoconf g++ make
pecl install -f xdebug
docker-php-ext-enable xdebug
apk del --purge autoconf g++ make
fi