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

Commit 0c58f82

Browse files
authored
Unbreak caching on Travis. (#242)
bazel 0.17.1 ignores HOME/.bazelrc (where we configure caching) if WORKSPACE/.bazelrc is present (which I populated in 877550f and broke caching). Upgrade to bazel 0.19.2 which doesn't have this problem.
1 parent 1bb6dea commit 0c58f82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ before_install:
2929
fi;
3030
tools/format.sh;
3131
fi
32-
- wget https://github.com/bazelbuild/bazel/releases/download/0.17.1/bazel-0.17.1-installer-${BAZEL_OS}-x86_64.sh
33-
- chmod +x bazel-0.17.1-installer-${BAZEL_OS}-x86_64.sh
34-
- ./bazel-0.17.1-installer-${BAZEL_OS}-x86_64.sh --user
32+
- wget https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-installer-${BAZEL_OS}-x86_64.sh
33+
- chmod +x bazel-0.19.2-installer-${BAZEL_OS}-x86_64.sh
34+
- ./bazel-0.19.2-installer-${BAZEL_OS}-x86_64.sh --user
3535
- echo "build --disk_cache=$HOME/bazel-cache" > ~/.bazelrc
3636
- echo "build --experimental_strict_action_env" >> ~/.bazelrc
3737

@@ -42,5 +42,5 @@ script:
4242
- bazel test $BAZEL_OPTIONS --experimental_ui_actions_shown=1 -k $(bazel query "kind(test, //...) except attr('tags', 'manual|noci', //...)" | grep -v :_)
4343

4444
before_cache:
45-
# Before uploading cache.
45+
# Before uploading cache, report its size.
4646
- du -sk $HOME/bazel-cache

tools/appveyor/install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ IF NOT EXIST %INSTALL_CACHE% (MKDIR %INSTALL_CACHE%)
1919

2020
REM Download bazel into install cache, which is on the path.
2121
IF NOT EXIST %INSTALL_CACHE%\bazel.exe (
22-
appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/0.17.1/bazel-0.17.1-windows-x86_64.exe -FileName %INSTALL_CACHE%\bazel.exe
22+
appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-windows-x86_64.exe -FileName %INSTALL_CACHE%\bazel.exe
2323
)
2424

2525
REM Temporary directory for bazel.

0 commit comments

Comments
 (0)