|
|
|
@ -395,6 +395,7 @@ jobs: |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
$ErrorActionPreference = 'Stop' |
|
|
|
$ErrorActionPreference = 'Stop' |
|
|
|
$env:PHPRC = Join-Path $env:PHP_HOME 'php.ini' |
|
|
|
$env:PHPRC = Join-Path $env:PHP_HOME 'php.ini' |
|
|
|
|
|
|
|
$env:PATH = "$env:PHPX_HOME\build;$env:PATH" |
|
|
|
|
|
|
|
|
|
|
|
composer install --no-dev --prefer-dist --no-progress --classmap-authoritative |
|
|
|
composer install --no-dev --prefer-dist --no-progress --classmap-authoritative |
|
|
|
if ($LASTEXITCODE -ne 0) { |
|
|
|
if ($LASTEXITCODE -ne 0) { |
|
|
|
@ -433,6 +434,7 @@ jobs: |
|
|
|
} |
|
|
|
} |
|
|
|
$root = $roots[0].FullName |
|
|
|
$root = $roots[0].FullName |
|
|
|
$phpExe = Join-Path $root 'php.exe' |
|
|
|
$phpExe = Join-Path $root 'php.exe' |
|
|
|
|
|
|
|
$compilerExe = Join-Path $root 'tpc.exe' |
|
|
|
$phpIni = Join-Path $root 'php.ini' |
|
|
|
$phpIni = Join-Path $root 'php.ini' |
|
|
|
$checkFile = Join-Path $destination 'check-php-ini.php' |
|
|
|
$checkFile = Join-Path $destination 'check-php-ini.php' |
|
|
|
$check = @' |
|
|
|
$check = @' |
|
|
|
@ -448,6 +450,16 @@ jobs: |
|
|
|
try { |
|
|
|
try { |
|
|
|
# Ignore the runner's extra ini files; test the relocated package. |
|
|
|
# Ignore the runner's extra ini files; test the relocated package. |
|
|
|
$env:PHP_INI_SCAN_DIR = '' |
|
|
|
$env:PHP_INI_SCAN_DIR = '' |
|
|
|
|
|
|
|
Push-Location $root |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
$compilerOutput = (& $compilerExe --version 2>&1 | Out-String).Trim() |
|
|
|
|
|
|
|
if ($LASTEXITCODE -ne 0) { |
|
|
|
|
|
|
|
throw "Relocated TypePHP compiler failed: $compilerOutput" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Write-Host "Relocated TypePHP compiler: $compilerOutput" |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
Pop-Location |
|
|
|
|
|
|
|
} |
|
|
|
foreach ($workingDirectory in @($root, $destination)) { |
|
|
|
foreach ($workingDirectory in @($root, $destination)) { |
|
|
|
Push-Location $workingDirectory |
|
|
|
Push-Location $workingDirectory |
|
|
|
try { |
|
|
|
try { |
|
|
|
|