Remove extraneous 'go modules' output from ./test.sh
parent
119d65061a
commit
a18c9a3fe1
3
Makefile
3
Makefile
|
@ -229,7 +229,8 @@ out/linters/golangci-lint:
|
|||
mkdir -p out/linters \
|
||||
&& cd out/linters \
|
||||
&& test -f go.mod || go mod init linters \
|
||||
&& go get -u github.com/golangci/golangci-lint/cmd/golangci-lint@692dacb773b703162c091c2d8c59f9cd2d6801db >/dev/null
|
||||
&& go get -u github.com/golangci/golangci-lint/cmd/golangci-lint@692dacb773b703162c091c2d8c59f9cd2d6801db \
|
||||
2>&1 | grep -v "go: finding"
|
||||
cp -f $(GOPATH)/bin/golangci-lint out/linters/golangci-lint
|
||||
|
||||
.PHONY: lint
|
||||
|
|
4
test.sh
4
test.sh
|
@ -19,11 +19,11 @@ set -eu -o pipefail
|
|||
exitcode=0
|
||||
|
||||
echo "= go mod ================================================================"
|
||||
go mod download >/dev/null || ((exitcode+=1))
|
||||
go mod download 2>&1 | grep -v "go: finding"
|
||||
go mod tidy -v && echo ok || ((exitcode+=2))
|
||||
|
||||
echo "= make lint ============================================================="
|
||||
make -s lint && echo ok || ((exitcode+=4))
|
||||
make -s lint && echo ok || ((exitcode+=4))
|
||||
|
||||
echo "= boilerplate ==========================================================="
|
||||
readonly PYTHON=$(type -P python || echo docker run --rm -it -v $(pwd):/minikube -w /minikube python python)
|
||||
|
|
Loading…
Reference in New Issue