Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 572 Bytes
GOTFLATS ?=
define eachmod
@echo '$(1)'
@find . -type f -name go.mod -print0 | xargs -I '{}' -n1 -0 bash -c 'dir="$$(dirname {})" && echo "$${dir}" && cd "$${dir}" && $(1)'
endef
pre-commit:
python -m pip install pre-commit --upgrade --user
pre-commit install --install-hooks
docker-ipfs-testground:
docker build -t ipfs/testground .
tidy:
$(call eachmod,go mod tidy)
lint:
$(call eachmod,golangci-lint run ./...)
test-build:
$(call eachmod,go build -o /dev/null ./...)
docker build -t ipfs/testground .
test:
$(call eachmod,go test -v $(GOTFLAGS) ./...)
You can’t perform that action at this time.