forked from atifaziz/High5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdo.cmd
More file actions
41 lines (37 loc) · 999 Bytes
/
Copy pathdo.cmd
File metadata and controls
41 lines (37 loc) · 999 Bytes
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
@echo off
pushd "%~dp0"
call :main %*
popd
goto :EOF
:main
setlocal
where dotnet >nul 2>&1 || (
echo>&2 .NET Core does not appear to be installed on this machine, which is
echo>&2 required to build the solution. You can install it from the URL below
echo>&2 and then try building again:
echo>&2 https://dot.net
exit 1
)
dotnet --info && call :%1 %2 %3 %4 %5 %6 %7 %8 %9
goto :EOF
:build
dotnet build -c Debug ^
&& dotnet build -c Release
goto :EOF
:test
call :build ^
&& dotnet test --no-restore --no-build -c Debug tests\Fixtures ^
&& dotnet test --no-restore --no-build -c Release tests\Fixtures
goto :EOF
:pack
setlocal
set VERSION_SUFFIX=
if not "%~1"=="" set VERSION_SUFFIX=--version-suffix %1
call :build ^
&& dotnet pack -c Release -o ..\dist ^
--no-restore ^
--no-build ^
--include-symbols ^
--include-source ^
%VERSION_SUFFIX%
goto :EOF