Skip to content

Commit a48a8c8

Browse files
fweikertbrandjon
authored andcommitted
Remove duplicate code from presubmit config (bazel-contrib#224)
1 parent fe5e0fa commit a48a8c8

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.bazelci/presubmit.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
# TODO(#144): When Bazel 0.29 is released, the docgen workflow will work, and
55
# we can go back to using `...` for build_targets.
66
---
7-
platforms:
8-
ubuntu1604:
9-
# I don't trust my knowledge of YAML enough to factor this list into an
10-
# anchor.
7+
all_targets: &all_targets
118
build_targets:
129
- "//examples/..."
1310
- "//experimental/..."
@@ -16,21 +13,10 @@ platforms:
1613
- "//tools/..."
1714
test_targets:
1815
- "..."
16+
platforms:
17+
ubuntu1604:
18+
<<: *all_targets
1919
ubuntu1804:
20-
build_targets:
21-
- "//examples/..."
22-
- "//experimental/..."
23-
- "//python/..."
24-
- "//rules_python/..."
25-
- "//tools/..."
26-
test_targets:
27-
- "..."
20+
<<: *all_targets
2821
macos:
29-
build_targets:
30-
- "//examples/..."
31-
- "//experimental/..."
32-
- "//python/..."
33-
- "//rules_python/..."
34-
- "//tools/..."
35-
test_targets:
36-
- "..."
22+
<<: *all_targets

0 commit comments

Comments
 (0)