forked from RicoSuter/NSwag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03_RunIntegrationTests.bat
53 lines (44 loc) · 1.73 KB
/
03_RunIntegrationTests.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
REM pushd "%~dp0\..\src\NSwag.Sample.NetCoreAngular"
REM dotnet publish || goto :error
REM "%~dp0\..src\NSwagStudio\bin\Release\nswag" run /runtime:NetCore11 || goto :error
REM popd
pushd "%~dp0\..\samples"
cmd /c call powershell .\run.ps1 Release || goto :error
popd
pushd "%~dp0\..\src\NSwag.Sample.NETCore11"
dotnet restore || goto :error
dotnet publish || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:NetCore21 || goto :error
popd
pushd "%~dp0\..\src\NSwag.Sample.NETCore20"
dotnet restore || goto :error
dotnet publish || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:NetCore21 || goto :error
popd
pushd "%~dp0\..\src\NSwag.Sample.NETCore21"
dotnet restore || goto :error
dotnet build /p:CopyLocalLockFileAssemblies=true || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:NetCore21 || goto :error
popd
pushd "%~dp0\..\src\NSwag.Sample.NETCore22"
dotnet restore || goto :error
dotnet build /p:CopyLocalLockFileAssemblies=true || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:NetCore22 || goto :error
popd
pushd "%~dp0\..\src\NSwag.Sample.NETCore30"
dotnet restore || goto :error
dotnet build /p:CopyLocalLockFileAssemblies=true || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:NetCore30 || goto :error
popd
pushd "%~dp0\..\src\NSwag.Sample.NetGlobalAsax"
msbuild || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:Winx64 || goto :error
popd
pushd "%~dp0\..\src\NSwag.Integration.WebAPI"
msbuild || goto :error
cmd /c call "..\NSwagStudio\bin\Release\nswag.cmd" run /runtime:Winx64 || goto :error
popd
goto :EOF
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%