mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
* Adding ci files * Single pipeline * Add test reporting * Try adding mocha-junit-reporter * More complete test reporting * Cleaning up * Trying to find location of test file * Added searching logic to wrong file * Trying different method of getting test results * Add reporter option * Adding alternate way of getting mac os * Get rid of bad comments
32 lines
670 B
Batchfile
32 lines
670 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set ELECTRON_RUN_AS_NODE=1
|
|
|
|
pushd %~dp0\..
|
|
|
|
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a
|
|
set NAMESHORT=%NAMESHORT: "=%
|
|
set NAMESHORT=%NAMESHORT:"=%.exe
|
|
set CODE=".build\electron\%NAMESHORT%"
|
|
|
|
rem TFS Builds
|
|
if not "%BUILD_BUILDID%" == "" (
|
|
if not "%ADD_REPORTER%" == "" (
|
|
%CODE% .\node_modules\mocha\bin\_mocha --reporter mocha-junit-reporter %*
|
|
)
|
|
|
|
if "%ADD_REPORTER%" == "" (
|
|
%CODE% .\node_modules\mocha\bin\_mocha %*
|
|
)
|
|
)
|
|
|
|
rem Otherwise
|
|
if "%BUILD_BUILDID%" == "" (
|
|
%CODE% .\node_modules\mocha\bin\_mocha --reporter mocha-junit-reporter %*
|
|
)
|
|
popd
|
|
|
|
endlocal
|
|
exit /b %errorlevel%
|