continuous integration (CI) support for on-premise/self-hosted gitlab #10457
imme-emosol
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Gitlab CI support
As I have some experience with gitlab-ci , I felt a need to respond to some of the things mentioned in #8256 .
Code Quality
Redirecting phpstan its output to a file (generating a report)
Not knowing the filename seems to be less of a concern, given that phpstan its output can be redirected to a file.
It might be good to mention that running phpstan multiple times in the same environment should have little time-impact and that it can therefore be used to generate several outputs.
CodeClimate / AutoDevOps
Gitlab runs CodeClimate when manually set up to do so, or when AutoDevOps is enabled.
CodeClimate plugins
What adding PHPStan to CodeClimate entails might be determined by looking at other plugins. For instance:
NOTE! - CodeClimate is on infrastructure of someone else
At this moment, using CodeClimate/AutoDevOps seems to not be an option for code that cannot leave a (private) network.
Code(/Type) Coverage
The code quality visualization availability in the Gitlab 'Free' Tier is limited compared to other tiers. Another metric that could be somewhat useful, is the percentage covered by phpstan, 'type coverage'. This can be done by adding
coverage
togitlab-ci.yml
with a regular expression that is matched against the, i assume stdout only, output produced by the ci-job (coverage:
regex examples).Suggestion for CI Page
A suggestion to create a page dedicated to pointing to suggestion for CI (an index of pointers).
Such a page could mention these pages:
table
) : https://phpstan.org/user-guide/output-formatBeta Was this translation helpful? Give feedback.
All reactions