forked from tilt-dev/ctlptl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 889 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 889 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
GOPATH = $(shell go env GOPATH)
.PHONY: generate test vendor publish-ci-image
install:
CGO_ENABLED=0 go install ./cmd/ctlptl
test:
go test -timeout 30s -v ./...
generated:
hack/make-rules/generated.sh
fmt:
goimports -w -l -local github.com/tilt-dev/ctlptl cmd/ internal/ pkg/
tidy:
go mod tidy
e2e:
test/e2e.sh
.PHONY: golangci-lint
golangci-lint: $(GOLANGCILINT)
$(GOPATH)/bin/golangci-lint run --verbose --timeout=120s
$(GOLANGCILINT):
(cd /; GO111MODULE=on GOPROXY="direct" GOSUMDB=off go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2)
BUILDER=buildx-multiarch
publish-ci-image:
docker buildx inspect $(BUILDER) || docker buildx create --name=$(BUILDER) --driver=docker-container --driver-opt=network=host
docker buildx build --builder=$(BUILDER) --pull --platform=linux/amd64,linux/arm64 --push -t docker/tilt-ctlptl-ci -f .circleci/Dockerfile .