From a7cb8c669887aa42503d532ba4e7c1c983fe4aaf Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 13 Feb 2019 13:24:33 +0000 Subject: [PATCH] Add clang-format to CirleCI --- circle.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/circle.yml b/circle.yml index cf33c93bc..a14fd289d 100644 --- a/circle.yml +++ b/circle.yml @@ -35,6 +35,13 @@ defaults: sudo pip3 install codespell codespell --skip=".git" + clangformat: &clangformat + run: + name: "Run clang-format" + command: | + clang-format -i src/* include/* + git diff --exit-code + build: &build run: name: "Build" @@ -319,6 +326,7 @@ jobs: steps: - checkout - *codespell + - *clangformat # The job collects built packages (available in the workspace) and # uploads them to the GitHub release matching the git tag.