Use bazel disk cache with travis (#5068)

This commit is contained in:
Simon Mo
2019-06-30 17:57:48 -07:00
committed by Philipp Moritz
parent 6c4c1d444d
commit 0c4dd3c401
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -141,6 +141,7 @@ install:
- if [ $RAY_CI_TUNE_AFFECTED != "1" ] && [ $RAY_CI_RLLIB_AFFECTED != "1" ] && [ $RAY_CI_PYTHON_AFFECTED != "1" ]; then exit; fi
- ./ci/suppress_output ./ci/travis/install-bazel.sh
- ./ci/suppress_output ./ci/travis/setup-bazel-cache.sh
- ./ci/suppress_output ./ci/travis/install-dependencies.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- ./ci/suppress_output ./ci/travis/install-ray.sh
@@ -214,3 +215,7 @@ deploy:
on:
repo: ray-project/ray
condition: $LINUX_WHEELS = 1 || $MAC_WHEELS = 1
cache:
directories:
- $HOME/ray-bazel-cache
+5
View File
@@ -0,0 +1,5 @@
set -x
set -e
mkdir -p $HOME/ray-bazel-cache
echo "build --disk_cache=$HOME/ray-bazel-cache" >> .bazelrc