mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
* add remote build to the pipeline * add a separte compile step * fix darwin build * add linux container and fix docker creation * fix distro * remove system install and add xvfb start * distro * add logic to only run tests on hosted machine * fix yml * fix yml * add linux docker container * fix docker file * fixdocker * fix darwin * fix linux build * add cache salt to npm cache * intentially ignore kerberos binaries * disable docker for now * remove vsix from win32 * fix linxu and win32 * fix linux and win32 * fix linux and win32 * fix linux * maybe fix win32 * fix linux * fix linux image; disable server package for noe * fix minimatch for win32 test * fix linux build * add back in docker * fix test * use tmp directory insteado workspace * change name of docker image * try a differnt folder * fix download * add a git clean step * bump cache * fix issues with builidng * readd windows build, revert signing changes * simplify win32 server packaage * some more optimizations * use decompress task * add back in install for windows test * fix linux build * add integration test to bat file * make platform the same * add copy extension to windows test * revert tests back * fix vsix drop aquasition * inital changes * fix download * fix dependent on for release * just downlaod everything which makes it easier * setup pipeline artifacts * more clean up * fix linux * add logic to install extensions for integration tests * fix extension install * fix build failures * fix some issues * fix darwin drop * change linux build copy to js * fix darwin archive * fix copy artifacts and use it for windows * use for darinw * fix darwin * ad dep on linux * fix win32 * fix darwin * fix copy artifacts * mkdir p darwin * fix copy * add error handler * add more binaries * add more binaries * fix archive path on linux * add more options to integration extension install * add more binaries * add verbose to installer copy * fix ip rate issues * fix bat file for including extensions * move echo * add windows test condition * use powershell cmdlet rather than cp * remove verbose * remove compiling of extensions * fix pipelines * update docker location * fix copy item * fix signing on win32 * fix locations * move back to using cp * ensure the docker folder exists * test a createdrop script on darwin * wip * fix copy * add drop for linux * fix builds * fix drop * fix docker on linx * fix darwin * lets try this again * fix linux drop * i guess try the copy files task * add create drop for win32 * ensure windows drop location exists * fix extension install * just use mkdir * add better logic for installing extensions * ignore errors? * try force * testing * ok this should work * use production cli * fix liveshare vscodeignore * fix integration test script * revert changes to integration tests to fix them * try newitem * remove exec * explicitly clear last exit code * fix test build * revert publish scripts * add version json * fix tests * add back sources creation * this is stupid * fix clean positioning * add version information to drop * fix locations of artifacts in publush scripts
60 lines
2.2 KiB
Batchfile
60 lines
2.2 KiB
Batchfile
@echo OFF
|
|
setlocal
|
|
|
|
pushd %~dp0\..
|
|
|
|
set VSCODEUSERDATADIR=%TMP%\adsuser-%RANDOM%-%TIME:~6,5%
|
|
set VSCODEEXTENSIONSDIR=%TMP%\adsext-%RANDOM%-%TIME:~6,5%
|
|
echo VSCODEUSERDATADIR=%VSCODEUSERDATADIR%
|
|
echo VSCODEEXTENSIONSDIR=%VSCODEEXTENSIONSDIR%
|
|
|
|
:: Figure out which Electron to use for running tests
|
|
if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
|
|
:: Run out of sources: no need to compile as code.sh takes care of it
|
|
set INTEGRATION_TEST_ELECTRON_PATH=.\scripts\code.bat
|
|
|
|
echo "Running integration tests out of sources."
|
|
) else (
|
|
:: Run from a built: need to compile all test extensions
|
|
call yarn gulp compile-extension:integration-tests
|
|
if NOT "%INTEGRATION_TEST_CLI_PATH%"=="" (
|
|
echo "using vsix directory .build\extensions"
|
|
for /f %%f IN ('dir /b /s ".build\extensions\*"') DO (
|
|
echo "installing extension %%f"
|
|
:: use the source cli, we could potentially change this if we ever care about testing this, but this is easier atm
|
|
call %INTEGRATION_TEST_CLI_PATH% --install-extension "%%f" --force --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR%
|
|
)
|
|
) else (
|
|
echo "Not installing external extensions"
|
|
)
|
|
|
|
echo "Running integration tests with '%INTEGRATION_TEST_ELECTRON_PATH%' as build."
|
|
)
|
|
|
|
:: Default to only running stable tests if test grep isn't set
|
|
if "%ADS_TEST_GREP%" == "" (
|
|
echo Running stable tests only
|
|
set ADS_TEST_GREP=@UNSTABLE@
|
|
SET ADS_TEST_INVERT_GREP=1
|
|
)
|
|
|
|
if "%SKIP_PYTHON_INSTALL_TEST%" == "1" (
|
|
echo Skipping Python installation tests.
|
|
) else (
|
|
set PYTHON_TEST_PATH=%VSCODEUSERDATADIR%\TestPythonInstallation
|
|
echo %PYTHON_TEST_PATH%
|
|
call %INTEGRATION_TEST_ELECTRON_PATH% --nogpu --extensionDevelopmentPath=%~dp0\..\extensions\notebook --extensionTestsPath=%~dp0\..\extensions\notebook\out\integrationTest --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
|
)
|
|
|
|
call %INTEGRATION_TEST_ELECTRON_PATH% -nogpu --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222 ^
|
|
--extensionDevelopmentPath=%~dp0\..\extensions\integration-tests --extensionTestsPath=%~dp0\..\extensions\integration-tests\out
|
|
|
|
rmdir /s /q %VSCODEUSERDATADIR%
|
|
rmdir /s /q %VSCODEEXTENSIONSDIR%
|
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
popd
|
|
|
|
endlocal
|