mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-23 18:36:46 +00:00
We build too many walls and not enough bridges
This commit is contained in:
19
pkg/pmapi/Makefile
Normal file
19
pkg/pmapi/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
export GO111MODULE=on
|
||||
|
||||
LINTVER="v1.21.0"
|
||||
LINTSRC="https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"
|
||||
|
||||
check-has-go:
|
||||
@which go || (echo "Install Go-lang!" && exit 1)
|
||||
|
||||
install-dev-dependencies: install-linter
|
||||
|
||||
install-linter: check-has-go
|
||||
curl -sfL $(LINTSRC) | sh -s -- -b $(shell go env GOPATH)/bin $(LINTVER)
|
||||
|
||||
lint:
|
||||
which golangci-lint || $(MAKE) install-linter
|
||||
golangci-lint run ./... \
|
||||
|
||||
test:
|
||||
go test -run=${TESTRUN} ./...
|
||||
Reference in New Issue
Block a user