Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3424701
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3424701
Commits
f5223a38
Verified
Commit
f5223a38
authored
1 year ago
by
Dave Long
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3403653
by alexpott, longwave: Incorporate improvements to how contrib runs PHPStan to core
parent
007c0c77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-1
19 additions, 1 deletion
.gitlab-ci.yml
with
19 additions
and
1 deletion
.gitlab-ci.yml
+
19
−
1
View file @
f5223a38
...
@@ -281,10 +281,28 @@ default:
...
@@ -281,10 +281,28 @@ default:
variables
:
variables
:
KUBERNETES_CPU_REQUEST
:
"
16"
KUBERNETES_CPU_REQUEST
:
"
16"
script
:
script
:
-
php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --error-format=gitlab > phpstan-quality-report.json
# Rely on PHPStan caching to execute analysis multiple times without performance drawback.
# Output a copy in junit.
-
php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --error-format=gitlab > phpstan-quality-report.json || EXIT_CODE=$?
-
php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --no-progress --error-format=junit > phpstan-junit.xml ||
true
-
|
if [ -n "$EXIT_CODE" ]; then
# Output a copy in plain text for human logs.
php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --no-progress || true
# Generate a new baseline.
echo "Generating an PHPStan baseline file (available as job artifact)."
php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --no-progress --generate-baseline=./core/phpstan-baseline.neon || true
exit $EXIT_CODE
fi
artifacts
:
artifacts
:
reports
:
reports
:
codequality
:
phpstan-quality-report.json
codequality
:
phpstan-quality-report.json
junit
:
phpstan-junit.xml
# Only store the baseline if the job fails.
when
:
on_failure
paths
:
-
core/phpstan-baseline.neon
'
🧹
PHP
Coding
standards
(PHPCS)'
:
'
🧹
PHP
Coding
standards
(PHPCS)'
:
<<
:
[
*with-composer
,
*default-job-settings-lint
]
<<
:
[
*with-composer
,
*default-job-settings-lint
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment