-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
20 lines (14 loc) · 774 Bytes
/
build.cmd
File metadata and controls
20 lines (14 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
SET VERSION=0.0.0
IF NOT [%1]==[] (set VERSION=%1)
SET TAG=0.0.0
IF NOT [%2]==[] (set TAG=%2)
SET TAG=%TAG:tags/=%
curl -o nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -k
if %errorlevel% neq 0 exit /b %errorlevel%
.\nuget.exe restore .\src\ViewModels.RavenDB.Tests\ViewModels.RavenDB.Tests.csproj -PackagesDirectory .\src\packages -Verbosity detailed
if %errorlevel% neq 0 exit /b %errorlevel%
dotnet test src/ViewModels.RavenDB.Tests/ViewModels.RavenDB.Tests.csproj -- RunConfiguration.TargetPlatform=x64 for RavenDB Tests
if %errorlevel% neq 0 exit /b %errorlevel%
dotnet pack src/ViewModels.RavenDB/ViewModels.RavenDB.csproj -o ./dist -p:Version=%version% -p:PackageVersion=%version% -p:Tag="%TAG%" -c Release
exit /b %errorlevel%