Move post build scripts to /scripts folder

This commit is contained in:
Kamil Szostak 2016-08-31 14:55:46 -07:00
Родитель b9d7bdfd14
Коммит 1ab8c246e8
6 изменённых файлов: 4 добавлений и 30 удалений

Просмотреть файл

@ -17,7 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\Package.targets = ..\Package.targets
PostTestScript.cmd = PostTestScript.cmd
..\README.md = ..\README.md
..\RunTestsInBrowser.ps1 = ..\RunTestsInBrowser.ps1
..\scripts\RunTestsInBrowser.ps1 = ..\scripts\RunTestsInBrowser.ps1
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavaScriptSDK", "JavaScriptSDK\JavaScriptSDK.csproj", "{49ECFE69-8C92-4FA7-A7C3-CDB957C71654}"

Просмотреть файл

@ -6,4 +6,4 @@ tasklist /FI "IMAGENAME eq iisexpress*" | find /I /N "iisexpress"
if "%ERRORLEVEL%"=="0" taskkill /im iisexpress*
rem Push the nupkg file to our private NuGet repository
call %TF_BUILD_SOURCESDIRECTORY%\PushNugetPackages.cmd
call %TF_BUILD_SOURCESDIRECTORY%\scripts\PushNugetPackages.cmd

Просмотреть файл

@ -1,26 +0,0 @@
setlocal
rem SKIP TESTS BY UNCOMMENTING THE FOLLOWING LINE
goto TheEnd
rem Run Windows Phone tests that are not currently supported by TeamBuild
set VSTEST_CONSOLE="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
set TESTRESULT=0
%VSTEST_CONSOLE% %TF_BUILD_BINARIESDIRECTORY%\Release\Core\Managed.Tests\Wp80\Wp80.Tests_Release_x86.xap /logger:"TfsPublisher;collection=%TF_BUILD_COLLECTIONURI%;TeamProject=AppInsights;buildname=%TF_BUILD_BUILDNUMBER%;Platform=Mixed Platforms;Flavor=Release;RunTitle=Core.Wp80.Tests" /InIsolation
if %ERRORLEVEL% neq 0 set TESTRESULT=%ERRORLEVEL%
%VSTEST_CONSOLE% %TF_BUILD_BINARIESDIRECTORY%\Release\Platform\Platform.Tests\Platform.Wp80.Tests\x86\Wp80.Tests_Release_x86.xap /logger:"TfsPublisher;collection=%TF_BUILD_COLLECTIONURI%;TeamProject=AppInsights;buildname=%TF_BUILD_BUILDNUMBER%;Platform=Mixed Platforms;Flavor=Release;RunTitle=Platform.Wp80.Tests" /InIsolation
if %ERRORLEVEL% neq 0 set TESTRESULT=%ERRORLEVEL%
rem Kill the Windows Phone Emulator to prevent next build from failing due to file locking
taskkill /im xde.exe
rem Fail the build if any test runs failed
if %TESTRESULT% neq 0 exit /B %TESTRESULT%
:TheEnd
REM Push the nupkg files to our private NuGet repository
call PushNugetPackages.cmd

Просмотреть файл

@ -92,7 +92,7 @@ See:
* Build solution in Visual Studio
## To run check-in tests
* `powershell "& .\RunTestsInBrowser.ps1"` to run `Tests.html` in a browser (you might need to call Set-ExecutionPolicy to be able to execute the script)
* `powershell "& .\scripts\RunTestsInBrowser.ps1"` to run `Tests.html` in a browser (you might need to call Set-ExecutionPolicy to be able to execute the script)
* Don't forget to build the solution after changing TypeScript files
* Refresh Tests.html in the browser to re-run tests

Просмотреть файл

Просмотреть файл

@ -1,5 +1,5 @@
# This script starts IIS Express and opens the Tests.html in a browser to host QUnit test runner
# - Run this script: > powershell "& .\RunTestsInBrowser.ps1"
# - Run this script: > powershell "& .\scripts\RunTestsInBrowser.ps1"
# - Build the solution after changing TypeScript source files to regenerate JavaScript
# - Refresh Tests.html in the browser to run the JavaScript tests