Switch to using bazelisk for build rather than bazel directly.
This helps to standardize the build on a single tool for managing bazel versions and upgrades, abstracing away a bunch of custom download and install logic. PiperOrigin-RevId: 293252897 Change-Id: Ia50f477cf58ecd9209ea8b7ce6cf5486a8d82ac6
This commit is contained in:
parent
8f59daf6b1
commit
45d5427d1c
@ -75,7 +75,7 @@ EOF
|
||||
}
|
||||
|
||||
source tensorflow/tools/ci_build/release/common.sh
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
which bazel
|
||||
|
||||
run_build
|
||||
|
@ -90,7 +90,7 @@ function run_build () {
|
||||
}
|
||||
|
||||
source tensorflow/tools/ci_build/release/common.sh
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
which bazel
|
||||
|
||||
run_build
|
||||
|
@ -109,7 +109,7 @@ function run_build () {
|
||||
}
|
||||
|
||||
source tensorflow/tools/ci_build/release/common.sh
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
which bazel
|
||||
|
||||
run_build
|
||||
|
@ -78,7 +78,7 @@ EOF
|
||||
|
||||
|
||||
source tensorflow/tools/ci_build/release/common.sh
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
which bazel
|
||||
|
||||
install_pylint
|
||||
|
@ -23,7 +23,7 @@ set_bazel_outdir
|
||||
# Install python dependencies
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -21,7 +21,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
# Install python dependencies
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
# Update Bazel to the desired version
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -21,7 +21,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
# Install python dependencies
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -21,7 +21,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
# Install python dependencies
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -21,7 +21,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
# Install python dependencies
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -23,7 +23,7 @@ install_ubuntu_16_pip_deps pip3.5
|
||||
|
||||
pip3.7 install --upgrade auditwheel --user
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -23,7 +23,7 @@ install_ubuntu_16_pip_deps pip3.6
|
||||
|
||||
pip3.7 install --upgrade auditwheel --user
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -23,7 +23,7 @@ install_ubuntu_16_pip_deps pip3.7
|
||||
|
||||
pip3.7 install --upgrade auditwheel --user
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -21,7 +21,7 @@ set_bazel_outdir
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.8
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.8
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.8
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
# Update Bazel to the desired version
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -22,7 +22,7 @@ set_bazel_outdir
|
||||
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip2.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -22,7 +22,7 @@ set_bazel_outdir
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.5
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -22,7 +22,7 @@ set_bazel_outdir
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.6
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -22,7 +22,7 @@ set_bazel_outdir
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
# Update bazel
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
|
||||
# Export required variables for running pip.sh
|
||||
export OS_TYPE="UBUNTU"
|
||||
|
@ -17,7 +17,7 @@ set -e
|
||||
|
||||
# Install latest bazel
|
||||
source tensorflow/tools/ci_build/release/common.sh
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
which bazel
|
||||
|
||||
# We need py3 lint
|
||||
|
@ -20,7 +20,7 @@ source tensorflow/tools/ci_build/release/common.sh
|
||||
source tensorflow/tools/ci_build/ctpu/ctpu.sh
|
||||
|
||||
install_ubuntu_16_pip_deps pip3.7
|
||||
update_bazel_linux
|
||||
install_bazelisk
|
||||
install_ctpu pip3.7
|
||||
ctpu_up -s v2-8 -p tensorflow-testing-tpu
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user