Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 31fe48a

Browse files
authored
Travis fix: upgrade bazel to 3.7.2 (#455)
--local_resources flag was split into ram/cpu.
1 parent ba63106 commit 31fe48a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/travis/build_bazel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ set -e
1616
set -x
1717

1818
# Limit memory.
19-
export BAZEL_OPTIONS="--local_resources=4096,2,1.0"
19+
export BAZEL_OPTIONS="--local_ram_resources=4096"
2020

2121
# Limit the amount of progress output. We can't use --noshow_progress because
2222
# Travis terminates the build after 10 mins without output.
@@ -27,7 +27,7 @@ if [[ "$TRAVIS_COMPILER" = "clang" ]]; then
2727
export BAZEL_OPTIONS="$BAZEL_OPTIONS --copt=-Werror=thread-safety --copt=-Werror=thread-safety-reference"
2828
fi
2929

30-
export BAZEL_VERSION="1.1.0"
30+
export BAZEL_VERSION="3.7.2"
3131

3232
wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh
3333
chmod +x bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh

0 commit comments

Comments
 (0)