You've already forked Php-Template
tests
This commit is contained in:
19
bin/pcov.sh
Executable file
19
bin/pcov.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
apk --no-cache add pcre-dev ${PHPIZE_DEPS}
|
||||
|
||||
git clone https://github.com/krakjoe/pcov.git
|
||||
cd pcov || exec
|
||||
phpize
|
||||
./configure --enable-pcov
|
||||
make
|
||||
make install
|
||||
|
||||
echo "extension=pcov.so" > /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini
|
||||
echo "pcov.enabled=1" >> /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini
|
||||
echo "pcov.directory=." >> /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini
|
||||
|
||||
# Cleanup
|
||||
cd ..
|
||||
rm -rf pcov
|
||||
24
bin/xdebug.sh
Executable file
24
bin/xdebug.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "Installing xDebug"
|
||||
|
||||
apk add make gcc linux-headers autoconf alpine-sdk
|
||||
|
||||
curl -sL https://github.com/xdebug/xdebug/archive/3.4.0.tar.gz -o 3.4.0.tar.gz
|
||||
tar -xvf 3.4.0.tar.gz
|
||||
cd xdebug-3.4.0 || exit
|
||||
phpize
|
||||
./configure --enable-xdebug
|
||||
make
|
||||
make install
|
||||
|
||||
echo "
|
||||
zend_extension=xdebug.so
|
||||
xdebug.mode=debug
|
||||
xdebug.start_with_request = yes
|
||||
xdebug.client_host = host.docker.internal
|
||||
" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
|
||||
cd ..
|
||||
rm -rf xdebug-3.4.0
|
||||
rm -rf 3.4.0.tar.gz
|
||||
Reference in New Issue
Block a user