Create and clean phpstan temp automatically
[MAILPOET-3146]
This commit is contained in:
committed by
Veljko V
parent
1f58e63306
commit
1de06f5aa6
@@ -503,6 +503,9 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
// PHPStan must be run out of main plugin directory to avoid its autoloading
|
// PHPStan must be run out of main plugin directory to avoid its autoloading
|
||||||
// from vendor/autoload.php where some dev dependencies cause conflicts.
|
// from vendor/autoload.php where some dev dependencies cause conflicts.
|
||||||
return $this->collectionBuilder()
|
return $this->collectionBuilder()
|
||||||
|
// temp dir
|
||||||
|
->taskExec('mkdir -p ' . __DIR__ . '/temp')
|
||||||
|
->taskExec('rm -rf ' . __DIR__ . '/temp/phpstan')
|
||||||
// lib
|
// lib
|
||||||
->taskExec($task)
|
->taskExec($task)
|
||||||
->arg("$dir/lib")
|
->arg("$dir/lib")
|
||||||
|
Reference in New Issue
Block a user