php/docker/usr/local/bin/xdebug_enable
Aleksander Cynarski e2a7e22b0f
Some checks reported errors
continuous-integration/drone/push Build was killed
new alpine
2022-01-29 21:50:38 +01:00

18 lines
503 B
Bash
Executable File

#!/bin/bash
echo "=>>>>>>>>> Actual environment: ${ENVIRONMENT}"
if [[ $ENVIRONMENT != 'production' ]]; then
echo "==============================>> Install phpunit"
wget -O phpunit https://phar.phpunit.de/phpunit-9.phar
install phpunit /usr/local/bin
fi
if [[ $ENVIRONMENT == 'development' ]]; then
echo "==============================>> Install xdebug"
apk --update --no-cache add autoconf g++ make
pecl install -f xdebug
docker-php-ext-enable xdebug
apk del --purge autoconf g++ make
fi