diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-03-22 11:18:54 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-03-22 20:45:30 +0000 |
commit | ef7058422eec1c8b90208bb3522fce28374feb58 (patch) | |
tree | b9cb4f8e94dbc9d670211eb097dad71bfaf1d2a4 | |
parent | 30b9369b01859e7c57687129ba2a481aa2bc48b8 (diff) |
Smarter setup of bazel remote cache on Cirrus CI.
We now check whether the cache application is reachable and running via
cURL. If it's running, we add the `--config=remote` line.
-rw-r--r-- | .cirrus.yml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 20126a21..db5a0e56 100644 --- a/.cirrus.yml +++ b/.cirrus.yml | |||
@@ -5,14 +5,11 @@ cirrus-ci_task: | |||
5 | cpu: 8 | 5 | cpu: 8 |
6 | memory: 12G | 6 | memory: 12G |
7 | configure_script: | 7 | configure_script: |
8 | - echo "build --jobs=50 --curses=no --verbose_failures" | tee ~/.bazelrc | ||
9 | - echo "build --config=linux" | tee -a ~/.bazelrc | ||
10 | - echo "build --config=clang" | tee -a ~/.bazelrc | ||
11 | # - echo "build --config=remote" | tee -a ~/.bazelrc | ||
12 | - cd .. && mv cirrus-ci-build c-toxcore | 8 | - cd .. && mv cirrus-ci-build c-toxcore |
13 | - git clone --branch=upgrade-bazel --depth=1 https://github.com/iphydf/toktok-stack cirrus-ci-build | 9 | - git clone --depth=1 https://github.com/TokTok/toktok-stack cirrus-ci-build |
14 | - mv c-toxcore cirrus-ci-build | 10 | - mv c-toxcore cirrus-ci-build |
15 | - cd - | 11 | - cd cirrus-ci-build |
12 | - tools/setup-ci | ||
16 | - bazel version | 13 | - bazel version |
17 | test_all_script: | 14 | test_all_script: |
18 | - RUN_TEST="bazel test --copt=-DUSE_IPV6=0 -c opt -k //c-toxcore/..." | 15 | - RUN_TEST="bazel test --copt=-DUSE_IPV6=0 -c opt -k //c-toxcore/..." |