mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-13 23:34:54 +00:00
Jakub Sokołowski
e10778c432
This adds a simple `Jenkinsfile` that runs `make lint` and `make test`. Had to also add a `deps` target that runs `lint-install` to install missing `golangci-lint`. Jobs folder: https://ci.status.im/job/go-waku/ Resolves: https://github.com/status-im/go-waku/issues/11 Signed-off-by: Jakub Sokołowski <jakub@status.im>
19 lines
368 B
Makefile
19 lines
368 B
Makefile
.PHONY: all build lint test
|
|
|
|
all: build
|
|
|
|
deps: lint-install
|
|
|
|
build:
|
|
go build -o build/waku waku.go
|
|
|
|
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
|
|
|
|
lint:
|
|
@echo "lint"
|
|
@golangci-lint --exclude=SA1019 run ./... --deadline=5m
|
|
test:
|
|
go test -v -failfast ./...
|