Create and clean phpstan temp automatically

[MAILPOET-3146]
This commit is contained in:
Rostislav Wolny
2020-10-07 10:23:16 +02:00
committed by Veljko V
parent 1f58e63306
commit 1de06f5aa6

View File

@@ -503,6 +503,9 @@ class RoboFile extends \Robo\Tasks {
// PHPStan must be run out of main plugin directory to avoid its autoloading
// from vendor/autoload.php where some dev dependencies cause conflicts.
return $this->collectionBuilder()
// temp dir
->taskExec('mkdir -p ' . __DIR__ . '/temp')
->taskExec('rm -rf ' . __DIR__ . '/temp/phpstan')
// lib
->taskExec($task)
->arg("$dir/lib")