-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·69 lines (55 loc) · 2.62 KB
/
makefile
File metadata and controls
executable file
·69 lines (55 loc) · 2.62 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
default: format test smoke-test pack
.PHONY: format build
restore:
$(call begin_group,$@)
dotnet restore
$(call end_group)
format: restore
$(call begin_group,$@)
dotnet format --verify-no-changes --no-restore
$(call end_group)
build: restore
$(call begin_group,$@)
dotnet build --configuration Release --no-restore
$(call end_group)
test: build
$(call begin_group,$@)
dotnet test --configuration Release --no-build
$(call end_group)
smoke-test: build
$(call begin_group,$@)
trap '$(set +x)' EXIT
set -x
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --help
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-targets
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-dependencies
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-inputs
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-dependencies --list-inputs
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --list-tree --list-inputs
dotnet run -c Release --no-build --project BullseyeSmokeTester --
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --parallel
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --dry-run
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --skip-dependencies
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --dry-run --skip-dependencies
dotnet run -c Release --no-build --project BullseyeSmokeTester -- --verbose
dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose
dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose --no-color
dotnet run -c Release --no-build --project BullseyeSmokeTester -- large-graph --verbose --parallel
dotnet run -c Release --no-build --project BullseyeSmokeTester.CommandLine -- --help
dotnet run -c Release --no-build --project BullseyeSmokeTester.CommandLine -- --foo bar --verbose build
dotnet run -c Release --no-build --project BullseyeSmokeTester.McMaster -- --help
dotnet run -c Release --no-build --project BullseyeSmokeTester.McMaster -- --foo bar --verbose build
dotnet run -c Release --no-build --project BullseyeSmokeTester.Parallel
env NO_COLOR=1 dotnet run -c Release --no-build --project BullseyeSmokeTester -- -h --verbose
$(call end_group)
pack: build
$(call begin_group,$@)
dotnet pack --configuration Release --output artifacts --no-build
$(call end_group)
# macros
define begin_group
@if [ "$$GITHUB_ACTIONS" = "true" ]; then echo "::group::$(1)"; fi
endef
define end_group
@if [ "$$GITHUB_ACTIONS" = "true" ]; then echo "::endgroup::"; fi
endef