Remove duplicate code from presubmit config (#224)
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index ca8f049..442cbf9 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml
@@ -4,33 +4,19 @@ # TODO(#144): When Bazel 0.29 is released, the docgen workflow will work, and # we can go back to using `...` for build_targets. --- +all_targets: &all_targets + build_targets: + - "//examples/..." + - "//experimental/..." + - "//python/..." + - "//rules_python/..." + - "//tools/..." + test_targets: + - "..." platforms: ubuntu1604: - # I don't trust my knowledge of YAML enough to factor this list into an - # anchor. - build_targets: - - "//examples/..." - - "//experimental/..." - - "//python/..." - - "//rules_python/..." - - "//tools/..." - test_targets: - - "..." + <<: *all_targets ubuntu1804: - build_targets: - - "//examples/..." - - "//experimental/..." - - "//python/..." - - "//rules_python/..." - - "//tools/..." - test_targets: - - "..." + <<: *all_targets macos: - build_targets: - - "//examples/..." - - "//experimental/..." - - "//python/..." - - "//rules_python/..." - - "//tools/..." - test_targets: - - "..." + <<: *all_targets