forked from dadhi/DryIoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_with_packaging.bat
49 lines (38 loc) · 938 Bytes
/
build_with_packaging.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
@echo off
setlocal EnableDelayedExpansion
dotnet clean -v:m
dotnet build -c:Release -v:m -p:DevMode=false
if %ERRORLEVEL% neq 0 goto :error
echo:
echo:## Finished: RESTORE and BUILD
echo:
echo:## Starting: TestRunner... ##
echo:
dotnet run --no-build -c Release --project test/DryIoc.TestRunner/DryIoc.TestRunner.csproj
if %ERRORLEVEL% neq 0 goto :error
echo:## Finished: TestRunner ##
echo:
echo:## Starting: TESTS...
echo:
dotnet test --no-build -c:Release -p:DevMode=false
if %ERRORLEVEL% neq 0 goto :error
echo:
echo:## Finished: TESTS
echo:
echo:## Starting: DOCUMENTATION GENERATION ##
echo:
dotnet msbuild -target:MdGenerate docs\DryIoc.Docs\DryIoc.Docs.csproj
echo:
echo:## Finished: DOCUMENTATION GENERATION ##
echo:
call build\NugetPack.bat
if %ERRORLEVEL% neq 0 goto :error
echo:
echo:## Finished: PACKAGING ##
echo:
echo:## Finished: ALL Successful ##
exit /b 0
:error
echo:
echo:## Build is failed :-(
exit /b 1