---
# NOTE: To avoid listing the same things for build_flags/test_flags for each
# of these tasks, they are listed in the .bazelrc instead.
tasks:
  macos_latest:
    name: "Latest Bazel"
    platform: macos
    bazel: latest
    build_targets:
    - "tools/..."
    - "test/..."
    test_targets:
    - "tools/..."
    - "test/..."
    - "examples/..."

  macos_last_green:
    name: "Last Green Bazel"
    platform: macos
    bazel: last_green
    build_targets:
    - "tools/..."
    - "test/..."
    test_targets:
    - "tools/..."
    - "test/..."
    - "examples/..."

  macos_latest_head_deps:
    name: "Latest Bazel with Head Deps"
    platform: macos
    bazel: latest
    shell_commands:
    # Update the WORKSPACE to use head versions of some deps to ensure nothing
    # has landed on them breaking this project.
    - .bazelci/update_workspace_to_deps_heads.sh
    build_targets:
    - "tools/..."
    - "test/..."
    test_targets:
    - "tools/..."
    - "test/..."
    - "examples/..."


buildifier:
  version: latest
  # Function doc string requirements are a little hard to follow, they did get
  # split into multiple warnings, so there is now just one left that causes
  # warnings. For the history of some of the issues, see:
  #  https://github.com/bazelbuild/buildtools/issues/576
  warnings: -function-docstring-args

---
x_defaults:
  # YAML has a feature for "repeated nodes", BazelCI is fine with extra nodes
  # it doesn't know about; so that is used to avoid repeating common subparts.
  common: &common
    platform: macos
    build_targets:
    - "tools/..."
    - "test/..."
    test_targets:
    - "tools/..."
    - "test/..."
    - "examples/..."

# NOTE: To avoid listing the same things for build_flags/test_flags for each
# of these tasks, they are listed in the .bazelrc instead.
tasks:
  macos_latest:
    name: "Latest Bazel"
    bazel: latest
    <<: *common

  macos_last_green:
    name: "Last Green Bazel"
    bazel: last_green
    <<: *common

  macos_latest_head_deps:
    name: "Latest Bazel with Head Deps"
    bazel: latest
    shell_commands:
    # Update the WORKSPACE to use head versions of some deps to ensure nothing
    # has landed on them breaking this project.
    - .bazelci/update_workspace_to_deps_heads.sh
    <<: *common


buildifier:
  version: latest
  # Function doc string requirements are a little hard to follow, they did get
  # split into multiple warnings, so there is now just one left that causes
  # warnings. For the history of some of the issues, see:
  #  https://github.com/bazelbuild/buildtools/issues/576
  warnings: -function-docstring-args

Use yaml anchors, aliases, and merge to avoid repetition.
Use yaml anchors, aliases, and merge to avoid repetition.

RELNOTES: None.
PiperOrigin-RevId: 252430973
