Skip to content

Commit

Permalink
feat(psalm): add tool to static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev committed Feb 11, 2021
1 parent 7bd6365 commit 8af8097
Show file tree
Hide file tree
Showing 5 changed files with 1,171 additions and 62 deletions.
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ install-deps:
- composer.json
- composer.lock
- symfony.lock
only:
- branches

php-cs-fixer:
stage: test
Expand Down Expand Up @@ -55,6 +57,13 @@ phpunit-coverage:
script:
- XDEBUG_MODE=coverage bin/phpunit --colors=never --coverage-text

psalm:
stage: test
dependencies:
- install-deps
script:
- vendor/bin/psalm


.prepare_template: &prepare_template
script:
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.18",
"psalm/plugin-symfony": "^2.1",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "5.2.*",
"symfony/phpunit-bridge": "^5.2",
"symfony/stopwatch": "^5.2",
"symfony/twig-bundle": "^5.2",
"symfony/web-profiler-bundle": "^5.2"
"symfony/web-profiler-bundle": "^5.2",
"vimeo/psalm": "^4.5"
},
"config": {
"optimize-autoloader": true,
Expand Down Expand Up @@ -69,6 +71,7 @@
"docker:push": "docker push jellybellydev/ci-cd-theory-into-practice:latest",
"php-cs-fixer": "vendor/bin/php-cs-fixer fix -v",
"phpstan": "vendor/bin/phpstan analyse",
"psalm": "vendor/bin/psalm",
"test": "bin/phpunit",
"test-coverage": "XDEBUG_MODE=coverage bin/phpunit --coverage-text",
"test-coverage-no-colors": "XDEBUG_MODE=coverage bin/phpunit --colors=never --coverage-text"
Expand Down
Loading

0 comments on commit 8af8097

Please sign in to comment.