Install PHPStan PHAR to tools directory

[MAILPOET-2405]
This commit is contained in:
Jan Jakeš
2019-09-25 10:21:39 +02:00
committed by Jack Kitterhing
parent d0be65715f
commit c822b09010
5 changed files with 5 additions and 3 deletions

View File

@ -73,10 +73,10 @@ jobs:
name: "Set up environment"
command: |
source ./.circleci/setup.bash && setup php7
wget https://github.com/phpstan/phpstan/releases/download/0.11.5/phpstan.phar
- run:
name: "Static analysis"
command: ./do qa:phpstan
php5_unit:
resource_class: small
working_directory: /home/circleci/mailpoet

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
TODO
composer.phar
php-scoper.phar
phpstan.phar
/vendor
/vendor-prefixed
/vendor_backup

View File

@ -429,7 +429,7 @@ class RoboFile extends \Robo\Tasks {
->taskExec(
'WP_ROOT="' . getenv('WP_ROOT') . '" ' .
'php -d memory_limit=2G ' .
"$dir/phpstan.phar analyse " .
"$dir/tools/vendor/phpstan.phar analyse " .
"--configuration $dir/tasks/phpstan/phpstan.neon " .
'--level 5 ' .
"$dir/lib"

View File

@ -1,5 +1,7 @@
parameters:
tmpDir: ../../temp/phpstan
autoload_files:
- %rootDir%/../../../vendor/autoload.php
bootstrap: bootstrap.php
ignoreErrors:
- '#Function members_register_.+ not found#'

View File

@ -1,6 +1,7 @@
<?php
$tools = [
'https://github.com/phpstan/phpstan/releases/download/0.11.5/phpstan.phar' => 'phpstan.phar',
'https://github.com/nette/tracy/releases/download/v2.6.4/tracy.phar' => 'tracy.phar',
];