Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Feb 27, 2024
1 parent e67cc00 commit a779313
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions cloudbuild/buildtest.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
steps:
- id: build
name: gcr.io/cloud-builders/bazel:6.4.0
args:
[
"build",
"--remote_cache=https://storage.googleapis.com/lemming-bazel-cache",
"--google_default_credentials",
"//...",
]
script: |
apt-get install libpcap-dev
bazel build --remote_cache=https://storage.googleapis.com/lemming-bazel-cache --google_default_credentials //...
- id: test
name: gcr.io/cloud-builders/bazel:6.4.0
entrypoint: bash
args:
[
"bazel",
"test",
"-test_output=errors",
"-combined_report=lcov",
"--remote_cache=https://storage.googleapis.com/lemming-bazel-cache",
"--google_default_credentials",
"bazel query 'attr(size, small, tests(\"//...\")) + attr(size, medium, tests(\"//...\"))'",
]

script: |
bazel test --test_output=errors --combined_report=lcov --remote_cache=https://storage.googleapis.com/lemming-bazel-cache --google_default_credentials \
$(bazel query 'attr(size, small, tests("//...")) + attr(size, medium, tests("//..."))')
timeout: 3600s
options:
machineType: "E2_HIGHCPU_8"

0 comments on commit a779313

Please sign in to comment.