diff --git a/cloudbuild/buildtest.yaml b/cloudbuild/buildtest.yaml index 7137b0ef..a7fbb369 100644 --- a/cloudbuild/buildtest.yaml +++ b/cloudbuild/buildtest.yaml @@ -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"