This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Collect code coverage (#1824)
* Enhancement: Configure whitelist filter for code coverage collection * Enhancement: Add coverage target to Makefile * Enhancement: Collect coverage on Travis CI
- Loading branch information
1 parent
8c18173
commit 88bfb84
Showing
6 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.build/ | ||
vendor | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The problem is that we do not want to remove the configuration file, just disable it for a few tasks, then enable it | ||
# | ||
# For reference, see | ||
# | ||
# - https://docs.travis-ci.com/user/languages/php#Disabling-preinstalled-PHP-extensions | ||
# - https://docs.travis-ci.com/user/languages/php#Custom-PHP-configuration | ||
|
||
config="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini" | ||
|
||
function xdebug-disable() { | ||
if [[ -f $config ]]; then | ||
mv $config "$config.bak" | ||
fi | ||
} | ||
|
||
function xdebug-enable() { | ||
if [[ -f "$config.bak" ]]; then | ||
mv "$config.bak" $config | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters