Skip to content

install pcov for 7.1 - 7.4 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: default
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ script:
./bin/compile-extension-mongodb) &&
./bin/compile-extension-amqp &&
./bin/compile-extension-apcu &&
./bin/compile-extension-pcov &&
./bin/compile-extension-zmq &&
(./bin/compile-extension-memcache;
./bin/compile-extension-memcached) &&
Expand Down
4 changes: 4 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock
xdebug.max_nesting_level = 256
EOF

cat >> "${INSTALL_DEST}/${VERSION}/etc/conf.d/pcov.ini" <<EOF
Copy link
Author

@krakjoe krakjoe Feb 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right to me with fresh eyes this morning, this wants to be written after the extension is installed, but I'm not sure what is the best way to do that within travis... maybe just write this line into the global ini ?

pcov.enabled=0
EOF

if [ $ALIAS ]; then
ln -s ${INSTALL_DEST}/${VERSION} ${INSTALL_DEST}/${ALIAS}
fi
Expand Down
14 changes: 14 additions & 0 deletions bin/compile-extension-pcov
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -o xtrace
set -o errexit
source $(dirname $0)/compile-extensions-common

travis_time_start

if [[ $VERSION =~ ^7\.[1234] ]]; then
pecl_install pcov </dev/null
else
echo "PHP $VERSION is not supported by PCOV"
fi

travis_time_finish