-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) 路 835 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
37
38
39
40
.DEFAULT_GOAL := default
ARTIFACTS := $(shell pwd)/artifacts
BUILD := $(shell pwd)/.build
TEMP := $(shell pwd)/.tmp
CONFIGURATION := Release
LIB := src/BtrExec/BtrExec.csproj
UNIT_TESTS := test/BtrExec.Test/BtrExec.Test.csproj
SANDBOX_EMULATOR := sandbox/Emulator/Emulator.csproj
.PHONY: default
default:
$(MAKE) package
.PHONY: setup
setup:
dotnet restore
.PHONY: package
package:
dotnet pack $(LIB) \
--configuration $(CONFIGURATION) \
--output $(ARTIFACTS)
.PHONY: test
test:
dotnet test $(UNIT_TESTS) -c $(CONFIGURATION) \
/property:CollectCoverage=true \
/property:CoverletOutputFormat=lcov \
/property:CoverletOutput=$(TEMP)/BtrExec.test/lcov.info
.PHONY: run-native
run-native:
cd src/NativeHelper && $(MAKE)
.PHONY: sandbox-emulator
sandbox-emulator:
dotnet run -p $(SANDBOX_EMULATOR)