-
Notifications
You must be signed in to change notification settings - Fork 67
/
build.cmd
28 lines (22 loc) · 981 Bytes
/
build.cmd
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
REM Restore the solution.
dotnet restore
if errorlevel 1 GOTO ERROR
REM Build the functions sdk.
dotnet build src\Microsoft.NET.Sdk.Functions.MSBuild --configuration=Release
if errorlevel 1 GOTO ERROR
REM Build the functions generator.
dotnet build src\Microsoft.NET.Sdk.Functions.Generator --configuration=Release
if errorlevel 1 GOTO ERROR
REM Pack the functions sdk.
dotnet pack src\Microsoft.NET.Sdk.Functions --configuration=Release
if errorlevel 1 GOTO ERROR
REM Run tests
dotnet test test\\Microsoft.NET.Sdk.Functions.Generator.Tests --configuration Debug
dotnet test test\\Microsoft.NET.Sdk.Functions.MSBuild.Tests --configuration Debug
dotnet test test\\Microsoft.NET.Sdk.Functions.EndToEnd.Tests --configuration Debug --logger console;verbosity=detailed
REM Remove the functions sdk in the user profile so that the built sdk will be restored.
rmdir /S /Q %userprofile%\.nuget\packages\microsoft.net.sdk.functions
if errorlevel 1 GOTO ERROR
:ERROR
endlocal
exit /b 1