Last active
July 13, 2018 12:15
-
-
Save pana-cc/90d75877746e11aad886d73e2b073acc to your computer and use it in GitHub Desktop.
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
@echo off | |
SET /A ExitCode=0 | |
echo ------------------------ | |
echo Call: Scripts\RunEditModeTests.bat | |
call Scripts\RunEditModeTests.bat | |
if %errorlevel% neq 0 SET ExitCode=%errorlevel% | |
echo ------------------------ | |
echo Call: Scripts\RunPlayModeTests.bat | |
call Scripts\RunPlayModeTests.bat | |
if %errorlevel% neq 0 SET ExitCode=%errorlevel% | |
echo ======================== | |
if %ExitCode% equ 0 ( | |
echo ALL TESTS: PASS | |
) else ( | |
echo ALL TESTS: FAIL %ExitCode% | |
) | |
echo ------------------------ | |
echo Call: Scripts\MSBuildSln.bat | |
call Scripts\MSBuildSln.bat | |
if %errorlevel% neq 0 SET ExitCode=%errorlevel% | |
EXIT /B %ExitCode% |
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
@echo off | |
echo MSBuild Unity solution Telerik\Telerik.sln with warnings-as-errors | |
MSBuild.exe %~dp0..\Telerik\Telerik.sln /t:Clean,Build /verbosity:quiet /p:TreatWarningsAsErrors=true /p:OutDir=%~dp0..\bin\unity-dll\ /p:Configuration=Release |
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
@echo off | |
echo Running EditMode Tests... | |
start /WAIT Unity.exe -runTests -projectPath %~dp0..\Telerik -testResults %~dp0..\bin\TestResultsEditMode.xml -logPath %~dp0..\bin\TestResultsEditMode.log -testPlatform editmode | |
if %errorlevel% equ 0 ( | |
echo EditMode Tests: PASS | |
) else ( | |
echo EditMode Tests: FAIL %errorlevel% | |
) | |
EXIT /B %errorlevel% |
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
@echo off | |
echo Running PlayMode Tests... | |
start /WAIT Unity.exe -runTests -projectPath %~dp0..\Telerik -testResults %~dp0..\bin\TestResultsPlayMode.xml -logPath %~dp0..\bin\TestResultsPlayMode.log -testPlatform playmode | |
if %errorlevel% equ 0 ( | |
echo PlayMode Tests: PASS | |
) else ( | |
echo PlayMode Tests: FAIL %errorlevel% | |
) | |
EXIT /B %errorlevel% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the
Build.bat
will start the Unity editor and execute edit mode and play mode tests and rebuild the Unity .sln with warnings as errors.You need MSBuild.exe and Unity.exe added to your PATH.