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

Commit a61e5d0

Browse files
authored
Use bazel cache to make CI faster. (#176)
1 parent 29d5a42 commit a61e5d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ install:
2323
- case "$BUILD" in
2424
"BAZEL")
2525
sudo apt-get install bazel ;
26+
echo "build --disk_cache=$HOME/bazel-cache" > ~/.bazelrc ;
27+
echo "build --experimental_strict_action_env" >> ~/.bazelrc ;
2628
bazel version;;
2729
esac
2830

2931
script:
3032
- case "$BUILD" in
3133
"BAZEL")
32-
cd src;
34+
cd src ;
3335
bazel build --show_result=100 ... ;;
3436
"GRADLE")
3537
./gradlew clean assemble --stacktrace ;
@@ -47,3 +49,4 @@ cache:
4749
- $HOME/.gradle
4850
- $HOME/.gradle/caches/
4951
- $HOME/.gradle/wrapper/
52+
- $HOME/bazel-cache/

0 commit comments

Comments
 (0)