-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor for new squirrel connection dependency
- Loading branch information
Showing
63 changed files
with
1,369 additions
and
2,637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
/bin export-ignore | ||
/build export-ignore | ||
/tests export-ignore | ||
/tools export-ignore | ||
/examples export-ignore | ||
/docker export-ignore | ||
/vendor-bin export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/captainhook.json export-ignore | ||
/phpstan.neon export-ignore | ||
/phpstan-baseline.neon export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/psalm.xml export-ignore | ||
/psalm-baseline.xml export-ignore | ||
/ruleset.xml export-ignore | ||
/.travis.yml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
error_reporting(E_ALL); // Report everything, even notices | ||
set_time_limit(0); // No time limit for console commands | ||
|
||
$projectDir = dirname(__DIR__); | ||
|
||
$composerRunType = $_SERVER['argv'][1] ?? 'outdated'; | ||
|
||
require $projectDir.'/vendor/autoload.php'; | ||
|
||
$sourceFinder = new \Symfony\Component\Finder\Finder(); | ||
$sourceFinder->in($projectDir . '/vendor-bin')->directories()->depth(0)->sortByName(); | ||
|
||
/** @var array<string, \Symfony\Component\Process\Process> $tools */ | ||
$tools = []; | ||
|
||
foreach ($sourceFinder as $directory) { | ||
$toolName = $directory->getFilename(); | ||
|
||
$options = [ | ||
'--ansi', | ||
]; | ||
|
||
if ($composerRunType === 'update') { | ||
$options[] = '--no-progress'; | ||
} | ||
|
||
$process = new \Symfony\Component\Process\Process(['composer', $composerRunType, ...$options]); | ||
if (isset($_SERVER['COMPOSER_CACHE_DIR'])) { | ||
$process->setEnv(['COMPOSER_CACHE_DIR' => $_SERVER['COMPOSER_CACHE_DIR']]); | ||
} | ||
$process->setWorkingDirectory($projectDir . '/vendor-bin/' . $toolName); | ||
$process->start(); | ||
$process->wait(); | ||
|
||
echo 'Running composer ' . $composerRunType . ' for ' . $toolName . ' ...' . "\n"; | ||
|
||
$processOutput = \trim($process->getOutput()); | ||
|
||
if ($composerRunType === 'update') { | ||
$processOutput = \trim($processOutput . "\n" . $process->getErrorOutput()); | ||
} | ||
|
||
if (\strlen($processOutput) > 0) { | ||
echo $processOutput . "\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.