forked from argoproj/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 635 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 635 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
# lint is memory and CPU intensive, so we can limit on CI to mitigate OOM
LINT_GOGC?=off
LINT_CONCURRENCY?=8
# Set timeout for linter
LINT_DEADLINE?=1m0s
.PHONY: build
build: linux-build windows-build darwin-build
.PHONY: clean
clean:
rm -Rf vendor
.PHONY: windows-build
windows-build:
GOOS=windows go build ./...
.PHONY: linux-build
linux-build:
GOOS=linux go build ./...
.PHONY: darwin-build
darwin-build:
GOOS=darwin go build ./...
.PHONY: lint
lint:
go mod tidy
GOGC=$(LINT_GOGC) golangci-lint run --fix --verbose --concurrency $(LINT_CONCURRENCY) --deadline $(LINT_DEADLINE)
.PHONY: test
test: lint
go test -v ./...