Skip to content

Commit

Permalink
Use yaml anchors, aliases, and merge to avoid repetition.
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 252430973
  • Loading branch information
thomasvl authored and swiple-rules-gardener committed Jun 10, 2019
1 parent c116a3e commit 371f686
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
---
tasks:
macos_latest:
name: "Latest Bazel"
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
bazel: latest
build_targets:
- "//..."
test_targets:
- "//..."

tasks:
macos_latest:
name: "Latest Bazel"
bazel: latest
<<: *common

macos_last_green:
name: "Last Green Bazel"
platform: macos
bazel: last_green
build_targets:
- "//..."
test_targets:
- "//..."
<<: *common

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:
- "//..."
test_targets:
- "//..."
<<: *common

buildifier: latest

0 comments on commit 371f686

Please sign in to comment.