-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (29 loc) · 963 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
dotnet ?= dotnet
mode ?= debug
autoproj ?= autoproj
autoproj_option ?=
ifeq ($(OS),Windows_NT)
/ := \\
os := win
else
/ := /
os := default
endif
.PHONY: develop preview release exam test local_cover
develop:
@echo "building(develop)..."
@$(dotnet) build -nologo -c Develop GeminiLab.Core2.GetOpt.sln
preview:
@echo "building(preview)..."
@-$(autoproj) $(autoproj_option) -- build_type=preview
@$(dotnet) build -nologo -c Preview GeminiLab.Core2.GetOpt.sln
release:
@echo "building(release)..."
@-$(autoproj) $(autoproj_option) -- build_type=release
@$(dotnet) build -nologo -c Release GeminiLab.Core2.GetOpt.sln
exam:
@$(dotnet) run -p Exam$(/)Exam.csproj
test:
@$(dotnet) test -nologo -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:Exclude=[xunit.*]* -v=normal --no-build XUnitTester$(/)XUnitTester.csproj
local_cover: develop test
reportgenerator -reports:.$(/)XUnitTester$(/)coverage.opencover.xml -targetdir:report.ignore