-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.cmd
48 lines (37 loc) · 2.63 KB
/
build.cmd
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
echo %~nx0: Formatting...
dotnet format --verify-no-changes || goto :error
echo %~nx0: Building...
dotnet build --configuration Release --nologo || goto :error
echo %~nx0: Testing...
dotnet test --configuration Release --no-build --nologo %1 %2 || goto :error
echo %~nx0: Smoke testing...
@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.DragonFruit -- --help || goto :error
dotnet run -c Release --no-build --project BullseyeSmokeTester.DragonFruit -- --foo bar --verbose --targets build || 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
set NO_COLOR=1
dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose || goto :error
@echo Off
goto :EOF
:error
@echo Off
exit /b %errorlevel%