X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fci%2Fsetup%2Fsetup_code_coverage.sh;h=49e7af838dab6f9ceb3614a12e6e91444f7ab135;hb=4e5288ea7f3cc91e029a9edd0ab0b9a26b72c972;hp=11309a62fee047e5c0927e177e2735e0120ca7fc;hpb=b9401ffa2174663e376dcbb3aadba09eb62d8d19;p=plcapi.git diff --git a/tests/ci/setup/setup_code_coverage.sh b/tests/ci/setup/setup_code_coverage.sh index 11309a6..49e7af8 100755 --- a/tests/ci/setup/setup_code_coverage.sh +++ b/tests/ci/setup/setup_code_coverage.sh @@ -8,6 +8,9 @@ set -e +PHPCONFDIR_CLI=$(php -i | grep 'Scan this dir for additional .ini files' | sed 's|Scan this dir for additional .ini files => ||') +PHPCONFDIR_FPM=$(echo "$PHPCONFDIR_CLI" | sed 's|/cli/|/fpm/|') + enable_cc() { if [ -L "${PHPCONFDIR_CLI}/99-codecoverage_xdebug.ini" ]; then sudo rm "${PHPCONFDIR_CLI}/99-codecoverage_xdebug.ini"; fi sudo ln -s $(realpath tests/ci/config/codecoverage_xdebug.ini) "${PHPCONFDIR_CLI}/99-codecoverage_xdebug.ini"