Skip to content

Commit

Permalink
compile tests as part of ./hack/build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kalinin committed Sep 21, 2021
1 parent e2f9d8c commit 5fb9b46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ VERSION="${1:-$LATEST_GIT_TAG}"
export CGO_ENABLED=0
LDFLAGS="-X github.com/k14s/kbld/pkg/kbld/version.Version=$VERSION -buildid="


go fmt ./cmd/... ./pkg/... ./test/...
go mod vendor
go mod tidy
Expand All @@ -18,4 +17,7 @@ go mod tidy
go build -ldflags="$LDFLAGS" -trimpath -o kbld ./cmd/kbld/...
./kbld version

# compile tests, but do not run them: https://github.com/golang/go/issues/15513#issuecomment-839126426
go test --exec=echo ./... >/dev/null

echo "Success"

0 comments on commit 5fb9b46

Please sign in to comment.