-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 849 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 849 Bytes
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
.PHONY: all build agents test test-cover lint fmt clean
all: build
agents:
$(MAKE) -C agents/android all
$(MAKE) -C agents/ios all
build: agents
go mod tidy
CGO_ENABLED=0 go build -ldflags="-s -w"
build-cover: agents
go mod tidy
CGO_ENABLED=0 go build -ldflags="-s -w" -cover
test:
go test ./... -v -race
test-cover: build-cover
go test ./... -v -race -cover -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
test-e2e: build-cover
rm -rf test/coverage
(cd test && npm run test-simulator)
go tool covdata textfmt -i=test/coverage -o cover.out
go tool cover -func=cover.out
lint:
$(shell go env GOPATH)/bin/golangci-lint run
fmt:
go fmt ./...
$(shell go env GOPATH)/bin/goimports -w .
clean:
$(MAKE) -C agents/android clean
$(MAKE) -C agents/ios clean
rm -f mobilecli coverage.out coverage.html