diff --git a/.gitignore b/.gitignore index d769eb5..49a3a32 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vendor .phpunit.result.cache +.phplint-cache composer.lock diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index f9c1977..9c35fc2 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -3,7 +3,7 @@ # This template allows you to validate your PHP application. # The workflow allows running tests and code linting on the default branch. -image: composer:2.0 +image: composer:2.1 pipelines: @@ -12,14 +12,14 @@ pipelines: - step: name: Test script: - - composer install - - ./vendor/bin/phpunit test/phpUnitTests + - composer require phpunit/phpunit + - ./vendor/bin/phpunit ./test/phpUnitTests caches: - composer - step: name: Lint script: - - composer install - - ./vendor/bin/phplint . --exclude=vendor + - composer require overtrue/phplint + - ./vendor/bin/phplint ./ --exclude=vendor caches: - - composer \ No newline at end of file + - composer diff --git a/composer.json b/composer.json index 89378f8..dd661e3 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,9 @@ "exclude": ["/test/", "/test/*", "/phpstan.neon", "/psalm.xml", "/.phan/", "/.vscode/", "/phpunit.xml"] }, "require-dev": { - "phpunit/phpunit": "^9" + "phpunit/phpunit": "^9", + "overtrue/phplint": "8.1.x-dev", + "phpstan/phpstan": "1.10.x-dev", + "phan/phan": "v5.x-dev" } }