File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -18,31 +18,15 @@ set -o errexit
18
18
set -o pipefail
19
19
20
20
cd " $( git rev-parse --show-toplevel) "
21
- export GOPATH=${GOPATH:- $HOME / go}
22
- mkdir -p " $GOPATH "
21
+
23
22
if [[ -n " ${GOOGLE_APPLICATION_CREDENTIALS:- } " ]]; then
24
23
echo " Service account detected. Adding --config=ci to bazel commands" >&2
25
24
mkdir -p " $HOME "
26
25
touch " $HOME /.bazelrc"
27
26
echo " build --config=ci" >> " $HOME /.bazelrc"
28
27
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
44
28
(
45
29
set -o xtrace
46
30
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
48
32
)
You can’t perform that action at this time.
0 commit comments