Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • change-demo-deploy
  • change-images
  • codeception-with-optional-step
  • exclude-wp-assets
  • feat/acceptance-tests
  • feat/demo-deploy
  • feat/npm-publish
  • feature/apigen
  • feature/codeception-coverage
  • feature/codeception-memory
  • feature/codeception-params
  • feature/coverage-in-mr
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • feature/prepare-codeception-tests
  • feature/reportportal
  • feature/speedup
  • fix/linter
  • fix/silenced-copy
  • globally-raise-mem-limit
  • improve-parallelization
  • include-composer-json
  • linter
  • linter-exit
  • master
  • remove-free-translations
  • remove-smoke
  • skip-codecept-for-libs
  • split-workflow
  • update_codecept_image
  • no-symlink2
31 results

Target

Select target project
  • wpdesk/gitlab-ci
1 result
Select Git revision
  • change-demo-deploy
  • change-images
  • codeception-with-optional-step
  • exclude-wp-assets
  • feat/acceptance-tests
  • feat/demo-deploy
  • feat/npm-publish
  • feature/apigen
  • feature/codeception-coverage
  • feature/codeception-memory
  • feature/codeception-params
  • feature/coverage-in-mr
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • feature/prepare-codeception-tests
  • feature/reportportal
  • feature/speedup
  • fix/linter
  • fix/silenced-copy
  • globally-raise-mem-limit
  • improve-parallelization
  • include-composer-json
  • linter
  • linter-exit
  • master
  • remove-free-translations
  • remove-smoke
  • skip-codecept-for-libs
  • split-workflow
  • update_codecept_image
  • no-symlink2
31 results
Show changes
Commits on Source (4)
.static-analysis:
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:8.3.2
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:8.4.1
needs:
- prepare prefixed vendor
stage: tests
# Run phpstan in strict mode (failing pipeline) only if we have baseline, otherwise allow to fail with a warning, suggesting to create one. This behavior will change at the end of the year, when any PHPStan failure will be considered fatal
phpstan:
extends: .static-analysis
script:
- |
if [ -f "vendor/bin/phpstan" ]; then
vendor/bin/phpstan analyse --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
vendor/bin/phpstan analyse --error-format=junit --memory-limit=2G > phpstan-junit.xml
vendor/bin/phpstan analyse --level 5 --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
elif [ -f "vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan" ]; then
# PHPStan installed by director
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 --error-format=junit --memory-limit=2G > phpstan-junit.xml
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 --level 5 --error-format=junit --memory-limit=2G > phpstan-junit.xml
else
echo "PHPStan not found! Install it with 'composer require --dev wpdesk/phpstan-rules'."
# We will be able to handle custom exit after removing rules.allow_failure part
exit 125
fi
allow_failure: true
artifacts:
paths:
- phpstan-codequality.json
......@@ -32,20 +29,19 @@ phpstan:
junit: phpstan-junit.xml
rules:
- !reference [.skip-mr, rules]
- if: $CI_PROJECT_NAMESPACE =~ /predators/
allow_failure: true
- exists:
- phpstan.neon.dist
- exists:
- .phpstan-baseline.php
- .phpstan-baseline.neon
allow_failure: false
phpcs:
extends: .static-analysis
script:
- vendor/bin/phpcs --warning-severity=0 --report-junit=phpcs-junit.xml --report-full
allow_failure: true
rules:
- !reference [.skip-mr, rules]
- if: $CI_PROJECT_NAMESPACE =~ /predators/
allow_failure: true
- exists:
- phpcs.xml.dist
artifacts:
......