Skip to content

Commit

Permalink
is_executable is buggy on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Oct 4, 2019
1 parent 2156bbd commit 7f34896
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ install:

test_script:
- ps: cd $Env:project_directory
# - php ./bin/grumphp run
- ./vendor/bin/phpunit --testsuite=E2E --filter='it_has_all_config_files_in_root_git_dir'
- php ./bin/grumphp run
2 changes: 1 addition & 1 deletion src/Composer/GrumPHPPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function detectGrumphpExecutable(): ?string
$suffixes,
function (?string $carry, string $suffix) use ($binDir): ?string {
$possiblePath = $binDir.DIRECTORY_SEPARATOR.self::APP_NAME.$suffix;
if ($carry || !file_exists($possiblePath) || !is_executable($possiblePath)) {
if ($carry || !file_exists($possiblePath)) {
return $carry;
}

Expand Down
3 changes: 0 additions & 3 deletions test/E2E/AbstractE2ETestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,12 @@ protected function installComposer(string $path, array $arguments = [])
'install',
'--optimize-autoloader',
'--no-interaction',
'-vvv',
],
$arguments),
$path
);

$this->runCommand('install composer', $process);

echo $process->getOutput() . PHP_EOL . $process->getErrorOutput();
}

protected function commitAll(string $gitPath = null)
Expand Down

0 comments on commit 7f34896

Please sign in to comment.