@@ -70,29 +70,19 @@ function Add-TestRequirements {
7070 [System.IO.Compression.ZipFile ]::ExtractToDirectory($testZipFilePath , $testsDirectoryPath )
7171 }
7272
73- $ldapDll = Join-Path $binDirectoryPath ' php_ldap.dll'
74- Remove-Item - LiteralPath $ldapDll - Force - ErrorAction SilentlyContinue
75-
76- $phpExePath = Join-Path $binDirectoryPath ' php.exe'
77- $phpCgiPath = Join-Path $binDirectoryPath ' php-cgi.exe'
78- try { & editbin " /stack:8388608" $phpExePath | Out-Null } catch {}
79- try { & editbin " /stack:8388608" $phpCgiPath | Out-Null } catch {}
80-
81- $Env: TEST_PHPDBG_EXECUTABLE = (Join-Path $binDirectoryPath ' phpdbg.exe' )
82-
8373 Get-PhpSdk
8474 $env: DEPS_DIR = " $currentDirectory /../deps"
8575 New-Item " $env: DEPS_DIR " - ItemType " directory" - Force > $null 2>&1
8676 $branch = if ($PhpVersion -eq ' master' ) {' master' } else {($PhpVersion -split ' \.' )[0 .. 1 ] -join ' .' }
87- & " $currentDirectory \php-sdk\bin\phpsdk_deps.bat " -- update -- no - backup -- branch $branch -- stability staging -- deps $ env: DEPS_DIR -- crt $VsVersion -- arch $Arch
88-
89- Set-MySqlTestEnvironment
90- Set-PgSqlTestEnvironment
91- Set-OdbcTestEnvironment
92- Set-MsSqlTestEnvironment
93- Set-FirebirdTestEnvironment
94- Set-EnchantTestEnvironment
95- Set-SnmpTestEnvironment - TestsDirectoryPath $testsDirectoryPath
77+ $ env: PHP_SDK_VS = $VsVersion
78+ $ env: PHP_SDK_ARCH = $Arch
79+ $bat_content = @ ()
80+ $bat_content += " cmd /c phpsdk_deps --update --force --no-backup --branch $branch --stability staging --deps $ env: DEPS_DIR "
81+ $bat_content += " editbin /stack:8388608 $binDirectoryPath \php.exe "
82+ $bat_content += " editbin /stack:8388608 $binDirectoryPath \php-cgi.exe "
83+ Set-Content - Encoding " ASCII " - Path vs.bat - Value $bat_content
84+ & " $currentDirectory \php-sdk\phpsdk-starter.bat " - c $VsVersion - a $Arch - t vs.bat
85+ Add-Path " $ env: DEPS_DIR \bin "
9686 }
9787 end {
9888 }
0 commit comments