Skip to content

Commit eed78fb

Browse files
committed
Add clang-format to CirleCI
1 parent 2e704ef commit eed78fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

circle.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ defaults:
3535
sudo pip3 install codespell
3636
codespell --skip=".git"
3737
38+
clangformat: &clangformat
39+
run:
40+
name: "Run clang-format"
41+
command: |
42+
clang-format --version
43+
clang-format -i src/* include/*
44+
git diff --exit-code
45+
3846
build: &build
3947
run:
4048
name: "Build"
@@ -319,6 +327,7 @@ jobs:
319327
steps:
320328
- checkout
321329
- *codespell
330+
- *clangformat
322331

323332
# The job collects built packages (available in the workspace) and
324333
# uploads them to the GitHub release matching the git tag.

0 commit comments

Comments
 (0)