forked from alphagov/notifications-net-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 1.57 KB
/
Makefile
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
.DEFAULT_GOAL := help
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: dependencies
dependencies: ## Install build dependencies
nuget restore
.PHONY: build
build: dependencies ## Build project
msbuild
.PHONY: test
test: ## Run unit tests
nunit-console NotifyTests/bin/Debug/NotifyTests.dll -include=Unit/NotificationClient -labels
.PHONY: authentication-test
authentication-test: ## Run authentication tests
nunit-console NotifyTests/bin/Debug/NotifyTests.dll -include=Unit/AuthenticationTests -labels
.PHONY: integration-test
integration-test: ## Run integration tests
nunit-console NotifyTests/bin/Debug/NotifyTests.dll -include=Integration -labels
.PHONY: single-test
single-test: ## Run a single test: make single-test test=[fully qualified test with namespace]
nunit-console NotifyTests/bin/Debug/NotifyTests.dll -nologo -nodots -run=$(test)
.PHONY: build-test
build-test: dependencies ## Build and test
make test
.PHONY: build-integration-test
build-integration-test: dependencies ## Build and integration test
make integration-test
.PHONY: build-test_all
build-test_all: dependencies ## Build and test all
make test
make authentication-test
make integration-test
.PHONY: build-release
build-release: dependencies ## Build release version
msbuild src/Notify/Notify.csproj /property:Configuration=Release
.PHONY: build-package
build-package: build-release ## Build and package NuGet
nuget pack src/Notify/Notify.csproj -Properties Configuration=Release