Skip to content

Commit

Permalink
Explicitly setting bazel cache options
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Sep 5, 2019
1 parent 4a72cc8 commit 5183bd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ common --experimental_allow_incremental_repository_updates
test --test_env=TRAVIS
test --test_env=DISPLAY
test --test_env=DASHBOARD_URL

# Set up caching on local disk so incremental builds are faster
# See https://bazel.build/designs/2016/09/30/repository-cache.html
build --repository_cache=~/.cache/bazel-repo
test --repository_cache=~/.cache/bazel-repo
# See https://docs.bazel.build/versions/master/remote-caching.html#disk-cache
build --disk_cache=~/.cache/bazel-disk
test --disk_cache=~/.cache/bazel-disk
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ _browsers:

cache:
directories:
- $HOME/.cache/bazel
- $HOME/.cache/bazel-repo
- $HOME/.cache/bazel-disk
- build

matrix:
Expand Down

0 comments on commit 5183bd5

Please sign in to comment.