-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4144 from pwojcikdev/ci/separate-windows-build-run
Separate Windows unit tests build and run stage
- Loading branch information
Showing
5 changed files
with
45 additions
and
23 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
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,26 +1,30 @@ | ||
@echo off | ||
setlocal | ||
set exit_code=0 | ||
set count=0 | ||
|
||
goto %RUN% | ||
|
||
:test | ||
if %count% equ 10 goto rpc_test | ||
call %BUILD_TYPE%\core_test.exe | ||
set core_code=%errorlevel% | ||
set /a count=count+1 | ||
if %core_code% neq 0 goto test | ||
|
||
:rpc_test | ||
call %BUILD_TYPE%\rpc_test.exe | ||
set rpc_code=%errorlevel% | ||
echo Core Test %core_code% | ||
echo RPC Test %rpc_code% | ||
|
||
exit /B %core_code% | ||
echo Core Test return code: %core_code% | ||
echo RPC Test return code: %rpc_code% | ||
|
||
if not %core_code%==0 ( | ||
echo Core Test fail | ||
set exit_code=1 | ||
) | ||
|
||
if not %rpc_code%==0 ( | ||
echo RPC Test fail | ||
set exit_code=1 | ||
) | ||
|
||
:artifact | ||
echo "Packaging NSIS" | ||
call "%cmake_path%\cpack.exe" -C %BUILD_TYPE% | ||
echo "Packaging ZIP" | ||
call "%cmake_path%\cpack.exe" -G ZIP -C %BUILD_TYPE% | ||
if %exit_code%==0 ( | ||
echo Success | ||
exit /b 0 | ||
) else ( | ||
echo Failed | ||
exit /b 1 | ||
) |
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,13 @@ | ||
$ErrorActionPreference = "Continue" | ||
|
||
$env:BUILD_TYPE = "Debug" | ||
$env:NETWORK_CFG = "dev" | ||
|
||
Push-Location build | ||
|
||
& ..\ci\actions\windows\run.bat | ||
if (${LastExitCode} -ne 0) { | ||
throw "Failed to Pass Tests" | ||
} | ||
|
||
Pop-Location |