Skip to content

Commit

Permalink
Enforce --no-colors in CI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Feb 6, 2020
1 parent 1ae3e57 commit 2de7506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pretty
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ $commands = [
*/
'ci' => [
'php-cs-fixer' => 'php-cs-fixer fix --dry-run --allow-risky=yes --diff --using-cache=no',
'phpcs' => 'phpcs --no-cache',
'default' => 'phpcs --standard=PSR2 --extensions=php --ignore="vendor/*" --no-cache .',
'phpcs' => 'phpcs --no-cache --no-colors',
'default' => 'phpcs --standard=PSR2 --extensions=php --ignore="vendor/*" --no-cache --no-colors .',
],
];

Expand Down Expand Up @@ -88,7 +88,7 @@ function commandExists($command)
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$return = shell_exec('where ' . escapeshellarg($command));
} else {
$return = shell_exec('which ' . escapeshellarg($command));
$return = shell_exec('which ' . escapeshellarg($command));
}
return !empty($return);
}
Expand Down

0 comments on commit 2de7506

Please sign in to comment.