Remove WordPress installation from static analysis job

[MAILPOET-2837]
This commit is contained in:
Rostislav Wolny
2020-12-30 14:36:44 +01:00
committed by Veljko V
parent 35a25e119f
commit b588737116
2 changed files with 1 additions and 7 deletions

View File

@ -171,15 +171,10 @@ jobs:
parameters: parameters:
php_version: php_version:
type: integer type: integer
default: 100 default: 70100
steps: steps:
- attach_workspace: - attach_workspace:
at: /home/circleci/mailpoet at: /home/circleci/mailpoet
- run:
name: "Setup WordPress Source"
command: |
wp core download --path=wordpress --allow-root --version=latest
echo "WP_ROOT=/home/circleci/mailpoet/wordpress" >> .env
- run: - run:
name: "Static analysis" name: "Static analysis"
command: ./do qa:phpstan --php-version=<< parameters.php_version >> command: ./do qa:phpstan --php-version=<< parameters.php_version >>

View File

@ -494,7 +494,6 @@ class RoboFile extends \Robo\Tasks {
public function qaPhpstan(array $opts=['php-version' => null]) { public function qaPhpstan(array $opts=['php-version' => null]) {
$dir = __DIR__; $dir = __DIR__;
$task = implode(' ', [ $task = implode(' ', [
'WP_ROOT="' . getenv('WP_ROOT') . '"',
'php -d memory_limit=-1', 'php -d memory_limit=-1',
"$dir/tasks/phpstan/vendor/bin/phpstan analyse ", "$dir/tasks/phpstan/vendor/bin/phpstan analyse ",
]); ]);