Install PHPStan PHAR to tools directory
[MAILPOET-2405]
This commit is contained in:
committed by
Jack Kitterhing
parent
d0be65715f
commit
c822b09010
@ -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
1
.gitignore
vendored
@ -2,7 +2,6 @@
|
||||
TODO
|
||||
composer.phar
|
||||
php-scoper.phar
|
||||
phpstan.phar
|
||||
/vendor
|
||||
/vendor-prefixed
|
||||
/vendor_backup
|
||||
|
@ -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"
|
||||
|
@ -1,5 +1,7 @@
|
||||
parameters:
|
||||
tmpDir: ../../temp/phpstan
|
||||
autoload_files:
|
||||
- %rootDir%/../../../vendor/autoload.php
|
||||
bootstrap: bootstrap.php
|
||||
ignoreErrors:
|
||||
- '#Function members_register_.+ not found#'
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user