Skip to content

Commit cea1ab4

Browse files
committed
Simplify presubmit.sh now that we use bazel
1 parent 0018165 commit cea1ab4

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

presubmit.sh

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,15 @@ set -o errexit
1818
set -o pipefail
1919

2020
cd "$(git rev-parse --show-toplevel)"
21-
export GOPATH=${GOPATH:-$HOME/go}
22-
mkdir -p "$GOPATH"
21+
2322
if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]]; then
2423
echo "Service account detected. Adding --config=ci to bazel commands" >&2
2524
mkdir -p "$HOME"
2625
touch "$HOME/.bazelrc"
2726
echo "build --config=ci" >> "$HOME/.bazelrc"
2827
fi
29-
tools=(
30-
//:go
31-
//:gofmt
32-
//:golangci-lint
33-
//:buildifier
34-
)
35-
(
36-
# Download all tool outputs until we migrate to using bazel run
37-
set -o xtrace
38-
bazel build --experimental_remote_download_outputs=all "${tools[@]}"
39-
)
40-
export PATH=$PATH:$GOPATH/bin:$PWD/bazel-bin
41-
export GOPATH=$GOPATH:/go # TODO(fejta): fix this prow hack
42-
export GO111MODULE=off # TODO(fejta): get rid of this
43-
# Build first since we need the generated protobuf for the govet checks
4428
(
4529
set -o xtrace
4630
bazel test //... # This also builds everything
47-
./verify/verify-boilerplate.sh --rootdir="$(pwd)" -v
31+
./verify/verify-boilerplate.sh --rootdir="$(pwd)" -v # TODO(fejta) migrate to bazel
4832
)

0 commit comments

Comments
 (0)