Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit 9e4f7fd

Browse files
Add a clang-format check.
1 parent bb1f99c commit 9e4f7fd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bb_master_config/master.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,19 @@ configurations = [
131131
ALL_BUILDER_NAMES = []
132132

133133
c['builders'] = []
134+
# A clang-format check.
135+
clang_format_factory = util.BuildFactory()
136+
clang_format_factory.addStep(
137+
Git(repourl=util.Interpolate("%(prop:repository)s"), mode='full'))
138+
clang_format_factory.addStep(ShellCommand(command=["scripts/check-formatting.sh"]))
139+
140+
c['builders'].append(
141+
util.BuilderConfig(
142+
name="clang-format",
143+
workernames=["ubuntu-worker"],
144+
factory=clang_format_factory))
145+
ALL_BUILDER_NAMES.append("clang-format")
146+
134147
for configuration in configurations:
135148
# ARM doesn't support profiling.
136149
if "--enable-prof" not in configuration:

0 commit comments

Comments
 (0)