Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
9b9a4ad2
Verified
Commit
9b9a4ad2
authored
5 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
refactor: remove hardcoded phpstan level, let project control
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
c14dedf8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/tests/static-analysis.yml
+4
-4
4 additions, 4 deletions
includes/tests/static-analysis.yml
with
4 additions
and
4 deletions
includes/tests/static-analysis.yml
+
4
−
4
View file @
9b9a4ad2
...
@@ -9,12 +9,12 @@ phpstan:
...
@@ -9,12 +9,12 @@ phpstan:
script
:
script
:
-
|
-
|
if [ -f "vendor/bin/phpstan" ]; then
if [ -f "vendor/bin/phpstan" ]; then
vendor/bin/phpstan analyse
--level 5
--error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
vendor/bin/phpstan analyse --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
vendor/bin/phpstan analyse
--level 5
--error-format=junit --memory-limit=2G > phpstan-junit.xml
vendor/bin/phpstan analyse --error-format=junit --memory-limit=2G > phpstan-junit.xml
elif [ -f "vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan" ]; then
elif [ -f "vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan" ]; then
# PHPStan installed by director
# PHPStan installed by director
vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse
--level 5
--error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse
--level 5
--error-format=junit --memory-limit=2G > phpstan-junit.xml
vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --error-format=junit --memory-limit=2G > phpstan-junit.xml
else
else
echo "PHPStan not found! Install it with 'composer require --dev wpdesk/phpstan-rules'."
echo "PHPStan not found! Install it with 'composer require --dev wpdesk/phpstan-rules'."
exit 125
exit 125
...
...
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