Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tfa
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
tfa
Merge requests
!92
Restore Code Coverage Reporting
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Restore Code Coverage Reporting
issue/tfa-3478161:3478161-fix-code-coverage
into
8.x-1.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Conrad Lara
requested to merge
issue/tfa-3478161:3478161-fix-code-coverage
into
8.x-1.x
7 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#3478161
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (base)
and
latest version
latest version
7159be36
1 commit,
7 months ago
1 file
+
7
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
7
−
2
Options
@@ -117,9 +117,14 @@ phpunit:
before_script
:
# Install and enable PCOV.
-
echo -e "\e[0Ksection_start:`date +%s`:php_ext_install[collapsed=true]\r\e[0KInstall PHP Extensions"
-
apt-get update && apt-get install -qy --no-install-recommends $PHPIZE_DEPS
-
|
PCOV_INSTALLED=$(/usr/local/bin/pecl list | /bin/grep -i pcov | /usr/bin/wc -l) && true;
if [ "$PCOV_INSTALLED" == "0" ]; then
apt-get update && apt-get install -qy --no-install-recommends $PHPIZE_DEPS
pecl install pcov
fi
-
echo -e '[pcov]\npcov.directory=.' > /usr/local/etc/php/conf.d/pcov.ini
-
pecl install pcov &&
docker-php-ext-enable pcov
-
docker-php-ext-enable pcov
-
echo -e "\e[0Ksection_end:`date +%s`:php_ext_install\r\e[0K"
after_script
:
# Ensure paths for coverage are git-relative.
Loading