forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.cmd
23 lines (17 loc) · 1.08 KB
/
Test.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cd /d "%~dp0"
ECHO OFF
SET CONFIG=%1
SET NET472=%2
SET NETCOREAPP21=%3
SET NETCOREAPP31=%4
SET FORMAT=%5
IF [%1] EQU [] (SET CONFIG=Debug)
IF [%2] EQU [] (SET NET472=1)
IF [%3] EQU [] (SET NETCOREAPP21=1)
IF [%4] EQU [] (SET NETCOREAPP31=1)
IF [%5] EQU [] (SET FORMAT=html)
ECHO Configuration=%CONFIG%, net472 enabled:%NET472%, netcoreapp2.1 enabled:%NETCOREAPP21%, format:%FORMAT%
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" linq2db.sln /p:Configuration=%CONFIG% /t:Restore;Build /v:m
IF %NET472% NEQ 0 (dotnet vstest ./Tests/Linq/bin/%CONFIG%/net472/linq2db.Tests.dll /Framework:.NETFramework,Version=v4.7.2 /logger:%FORMAT%;LogFileName=net472.%FORMAT%)
IF %NETCOREAPP21% NEQ 0 (dotnet vstest ./Tests/Linq/bin/%CONFIG%/netcoreapp2.1/linq2db.Tests.dll /Framework:.NETCoreApp,Version=v2.1 /logger:%FORMAT%;LogFileName=netcoreapp21.%FORMAT%)
IF %NETCOREAPP31% NEQ 0 (dotnet vstest ./Tests/Linq/bin/%CONFIG%/netcoreapp3.1/linq2db.Tests.dll /Framework:.NETCoreApp,Version=v3.1 /logger:%FORMAT%;LogFileName=netcoreapp31.%FORMAT%)