-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (46 loc) · 1017 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SHELL := bash
REPOSITORY ?= localhost
CONTAINER_NAME ?= fleetlock
TAG ?= latest
build: build-fleetctl build-fleetlock
build-fleetctl:
hack/build.sh fleetctl
build-fleetlock:
hack/build.sh fleetlock
image:
podman build -t $(REPOSITORY)/$(CONTAINER_NAME):$(TAG) .
test:
go test -v -race -coverprofile=coverprofile.out -coverpkg "./pkg/..." ./cmd/... ./pkg/... ./tests/storage/...
test-e2e:
go test -count=1 -v ./tests/e2e/...
update-deps:
hack/update-deps.sh
coverprofile:
hack/coverprofile.sh
lint: golangci-lint
golangci-lint run -v
fmt:
gofmt -s -w ./cmd ./pkg ./tests
manifests:
hack/manifests.sh
validate:
hack/validate.sh
clean:
rm -rf bin manifests/release coverprofiles coverprofile.out logs tmp_fleetlock_image_fleetlock-e2e-*.tar
golangci-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
.PHONY: \
default \
build \
image \
test \
test-e2e \
update-deps \
coverprofile \
lint \
fmt \
manifests \
validate \
clean \
golangci-lint \
$(NULL)