Skip to content

Commit

Permalink
Smarter setup of bazel remote cache on Cirrus CI.
Browse files Browse the repository at this point in the history
We now check whether the cache application is reachable and running via
cURL. If it's running, we add the `--config=remote` line.
  • Loading branch information
iphydf committed Mar 22, 2020
1 parent 30b9369 commit ef70584
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ cirrus-ci_task:
cpu: 8
memory: 12G
configure_script:
- echo "build --jobs=50 --curses=no --verbose_failures" | tee ~/.bazelrc
- echo "build --config=linux" | tee -a ~/.bazelrc
- echo "build --config=clang" | tee -a ~/.bazelrc
# - echo "build --config=remote" | tee -a ~/.bazelrc
- cd .. && mv cirrus-ci-build c-toxcore
- git clone --branch=upgrade-bazel --depth=1 https://github.com/iphydf/toktok-stack cirrus-ci-build
- git clone --depth=1 https://github.com/TokTok/toktok-stack cirrus-ci-build
- mv c-toxcore cirrus-ci-build
- cd -
- cd cirrus-ci-build
- tools/setup-ci
- bazel version
test_all_script:
- RUN_TEST="bazel test --copt=-DUSE_IPV6=0 -c opt -k //c-toxcore/..."
Expand Down

0 comments on commit ef70584

Please sign in to comment.