-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.cirrus.yml
33 lines (27 loc) · 941 Bytes
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
container:
image: l.gcr.io/google/bazel:3.0.0
environment:
XDG_CACHE_HOME: /xdg_cache
task:
name: test
bazelisk_installation_script:
- |
rm /usr/local/bin/bazel
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64"
mv bazelisk-linux-amd64 "/usr/bin/bazel"
chmod +x /usr/bin/bazel
which bazel
bazelisk_cache:
folder: $XDG_CACHE_HOME
fingerprint_script: cat .bazelversion
populate_script: mkdir -p $XDG_CACHE_HOME && bazel version
bazel_repository_cache:
folder: /.repo_cache
fingerprint_script: cat WORKSPACE
populate_script: mkdir -p /.repo_cache && bazel fetch --repository_cache=/.repo_cache //...
test_script:
- bazel test --repository_cache=/.repo_cache -k --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST //...
always:
junit_result_artifacts:
path: "bazel-testlogs/**/test.xml"
format: junit