-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (60 loc) · 1.58 KB
/
Makefile
File metadata and controls
74 lines (60 loc) · 1.58 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
default: build
r: restore
b: build
t: test
ra: restore-all
ba: build-all
ta: test-all
ti: test-integration
tir: test-integration-repeatedly
tid: test-integration-debug
# Main projects (more lightweight)
.PHONY: clean
clean:
dotnet clean -v q
.PHONY: restore
restore:
@echo "Restoring NuGet packages..."
dotnet restore -v q
.PHONY: build
build: restore
@echo "Building main projects..."
dotnet build --no-restore -v m
.PHONY: test
test: build
@echo "Running main tests..."
dotnet test --no-restore --no-build -v m
# All projects (analyzers, integration tests...)
.PHONY: clean-all
clean-all:
dotnet clean -v q solutions/All.sln
.PHONY: restore-all
restore-all:
@echo "Restoring NuGet packages..."
dotnet restore -v q solutions/All.sln
.PHONY: build-all
build-all: restore-all
@echo "Building all projects..."
dotnet build --no-restore -v m solutions/All.sln
.PHONY: test-all
test-all: build-all
@echo "Running all tests..."
dotnet test --no-restore --no-build -v m solutions/All.sln
# Only integration tests
.PHONY: test-integration
test-integration:
ifdef filter
dotnet test test/Altinn.App.Integration.Tests/ --logger "console;verbosity=detailed" --filter "$(filter)"
else
dotnet test test/Altinn.App.Integration.Tests/ --logger "console;verbosity=detailed"
endif
.PHONY: test-integration-repeatedly
test-integration-repeatedly:
ifdef filter
@TEST_FILTER="$(filter)" bash run-repeatedly.sh
else
@bash run-repeatedly.sh
endif
.PHONY: test-integration-debug
test-integration-debug:
make ti filter="FullyQualifiedName~BasicAppTests.Full&DisplayName~SimplifiedNoPrefill&DisplayName~OldUser"