-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathbuild.cmd
More file actions
78 lines (62 loc) · 2.99 KB
/
build.cmd
File metadata and controls
78 lines (62 loc) · 2.99 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@echo Off
call :begin_group restore
@echo On
dotnet restore || goto :error
@echo Off
call :end_group
call :begin_group format
@echo On
dotnet format --verify-no-changes --no-restore || goto :error
@echo Off
call :end_group
call :begin_group build
@echo On
dotnet build --configuration Release --no-restore || goto :error
@echo Off
call :end_group
call :begin_group test
@echo On
dotnet test --configuration Release --no-build || goto :error
@echo Off
call :end_group
call :begin_group smoke-test
@echo On
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --help || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-targets || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-dependencies || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-inputs || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-dependencies --list-inputs || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-tree --list-inputs || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --parallel || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --dry-run || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --skip-dependencies || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --dry-run --skip-dependencies || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --verbose || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose --no-color || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester -- large-graph --verbose --parallel || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester.CommandLine -- --help || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester.CommandLine -- --foo bar --verbose build || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester.McMaster -- --help || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester.McMaster -- --foo bar --verbose build || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester.Parallel || goto :error
set NO_COLOR=1
dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose || goto :error
@echo Off
call :end_group
call :begin_group pack
@echo On
dotnet pack --configuration Release --output artifacts --no-build || goto :error
@echo Off
call :end_group
goto :EOF
:begin_group
if "%GITHUB_ACTIONS%"=="true" echo ::group::%~1
exit /b 0
:end_group
if "%GITHUB_ACTIONS%"=="true" echo ::endgroup::
exit /b 0
:error
@echo Off
exit /b %errorlevel%