2021-08-13 13:56:09 +02:00
|
|
|
.PHONY: all build lint test
|
2021-04-13 14:54:15 -04:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
2021-08-16 11:48:11 +02:00
|
|
|
deps: lint-install
|
|
|
|
|
2021-04-13 14:54:15 -04:00
|
|
|
build:
|
|
|
|
go build -o build/waku waku.go
|
2021-07-29 08:40:54 -04:00
|
|
|
|
2021-09-27 18:52:56 +01:00
|
|
|
vendor:
|
|
|
|
go mod tidy
|
|
|
|
|
2021-08-16 11:48:11 +02:00
|
|
|
lint-install:
|
|
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
|
|
|
|
bash -s -- -b $(shell go env GOPATH)/bin v1.41.1
|
|
|
|
|
2021-07-29 08:40:54 -04:00
|
|
|
lint:
|
|
|
|
@echo "lint"
|
2021-08-13 13:56:09 +02:00
|
|
|
@golangci-lint --exclude=SA1019 run ./... --deadline=5m
|
|
|
|
test:
|
|
|
|
go test -v -failfast ./...
|