-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 837 Bytes
/
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
-include User.mk
-include ../User.mk
-include ~/User.mk
.PHONY: all
## Runs unit the tests.
all:test
.PHONY: test
## Runs the unit tests.
test: clean
dotnet test -c Release --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
ifeq ($(ENV),'DEV')
dotnet ~/.nuget/packages/reportgenerator/4.7.1/tools/netcoreapp3.0/ReportGenerator.dll "-reports:./test/SnakesAndLadders.Tests/TestResults/**/coverage.opencover.xml" "-targetdir:coveragereport" -reporttypes:Html
endif
.PHONY: start
## Starts the app.
start:
dotnet run
.PHONY: clean
## Removes generated files.
clean:
dotnet clean
dotnet clean -c Release
rm -rf test/SnakesAndLadders.Tests/TestResults
## build
.PHONY: build
build:
dotnet build -c Release
.PHONY: publish
publish:
dotnet publish -c Release