-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 1.05 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
.DEFAULT_GOAL := dev
.PHONY: build-basic
build-basic:
cd examples/basic && go build ./...
.PHONY: build-validation
build-validation:
cd examples/validation && go build ./...
.PHONY: build-m2m
build-m2m:
cd examples/m2m && go build ./...
.PHONY: test-basic
test-basic:
cd examples/basic && go test ./... -v
.PHONY: test-validation
test-validation:
cd examples/validation && go test ./... -v
.PHONY: test-m2m
test-m2m:
cd examples/m2m && go test ./... -v
.PHONY: lint-basic
lint-basic:
cd examples/basic && GOFLAGS=-buildvcs=false golangci-lint run --timeout 5m0s -v
.PHONY: lint-validation
lint-validation:
cd examples/validation && GOFLAGS=-buildvcs=false golangci-lint run --timeout 5m0s -v
.PHONY: lint-m2m
lint-m2m:
cd examples/m2m && GOFLAGS=-buildvcs=false golangci-lint run --timeout 5m0s -v
.PHONY: build-examples
build-examples: build-basic build-validation build-m2m
.PHONY: test
test: test-basic test-validation test-m2m
.PHONY: lint
lint: lint-basic lint-validation lint-m2m
.PHONY: dev
dev:
@echo "Development target (customize as needed)"