Use bazel cache to make CI faster. (#176)

pull/177/head
easy 6 years ago committed by GitHub
parent 29d5a424e7
commit a61e5d0964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .travis.yml

@ -23,13 +23,15 @@ install:
- case "$BUILD" in
"BAZEL")
sudo apt-get install bazel ;
echo "build --disk_cache=$HOME/bazel-cache" > ~/.bazelrc ;
echo "build --experimental_strict_action_env" >> ~/.bazelrc ;
bazel version;;
esac
script:
- case "$BUILD" in
"BAZEL")
cd src;
cd src ;
bazel build --show_result=100 ... ;;
"GRADLE")
./gradlew clean assemble --stacktrace ;
@ -47,3 +49,4 @@ cache:
- $HOME/.gradle
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/bazel-cache/

Loading…
Cancel
Save