forked from dadhi/DryIoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
b.bat
48 lines (34 loc) · 870 Bytes
/
b.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
@echo off
setlocal EnableDelayedExpansion
dotnet clean -v:m
dotnet build -c:Release -v:m -p:DevMode=false;NoLegacy=true
if %ERRORLEVEL% neq 0 goto :error
echo:
echo:## Finished: RESTORE and BUILD
echo:
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;NoLegacy=true
if %ERRORLEVEL% neq 0 goto :error
echo:
echo:## Finished: TESTS
echo:
echo:## Starting: MARKDOWN DOCS GENERATION
dotnet msbuild -target:MdGenerate docs\DryIoc.Docs\DryIoc.Docs.csproj
echo:
echo:## Finished: MARKDOWN DOCS GENERATION
echo:
echo:
echo:## Finished: ALL Successful ##
exit /b 0
:error
echo:
echo:## Build is failed :-(
exit /b 1